74 bool initialiseFromCommandLine (
const String& commandLine,
75 const String& commandLineUniqueID,
84 virtual void handleMessageFromCoordinator (
const MemoryBlock& mb);
86 [[deprecated (
"Replaced by handleMessageFromCoordinator.")]]
87 virtual void handleMessageFromMaster (
const MemoryBlock&) {}
92 virtual void handleConnectionMade();
99 virtual void handleConnectionLost();
106 bool sendMessageToCoordinator (
const MemoryBlock&);
108 [[deprecated (
"Replaced by sendMessageToCoordinator.")]]
109 bool sendMessageToMaster (
const MemoryBlock& mb) {
return sendMessageToCoordinator (mb); }
113 std::unique_ptr<Connection> connection;
115 JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ChildProcessWorker)
118using ChildProcessSlave [[deprecated (
"Replaced by ChildProcessWorker.")]] = ChildProcessWorker;
172 bool launchWorkerProcess (
const File& executableToLaunch,
173 const String& commandLineUniqueID,
175 int streamFlags = ChildProcess::wantStdOut | ChildProcess::wantStdErr);
177 [[deprecated (
"Replaced by launchWorkerProcess.")]]
178 bool launchSlaveProcess (
const File& executableToLaunch,
179 const String& commandLineUniqueID,
181 int streamFlags = ChildProcess::wantStdOut | ChildProcess::wantStdErr)
183 return launchWorkerProcess (executableToLaunch, commandLineUniqueID, timeoutMs, streamFlags);
189 void killWorkerProcess();
191 [[deprecated (
"Replaced by killWorkerProcess.")]]
192 void killSlaveProcess() { killWorkerProcess(); }
197 virtual void handleMessageFromWorker (
const MemoryBlock&);
199 [[deprecated (
"Replaced by handleMessageFromWorker")]]
200 virtual void handleMessageFromSlave (
const MemoryBlock&) {}
205 virtual void handleConnectionLost();
212 bool sendMessageToWorker (
const MemoryBlock&);
214 [[deprecated (
"Replaced by sendMessageToWorker.")]]
215 bool sendMessageToSlave (
const MemoryBlock& mb) {
return sendMessageToWorker (mb); }
218 std::shared_ptr<ChildProcess> childProcess;
221 std::unique_ptr<Connection> connection;
223 JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ChildProcessCoordinator)
226using ChildProcessMaster [[deprecated (
"Replaced by ChildProcessCoordinator.")]] = ChildProcessCoordinator;
ChildProcessCoordinator()
virtual ~ChildProcessWorker()