Lines Matching defs:worker
193 // Post a message to the worker. The worker will take ownership of the
197 // Synchronously retrieve messages from the worker's outgoing message queue.
199 // If there are no messages in the queue and the worker is no longer running,
203 // Terminate the worker's event loop. Messages from the worker that have been
211 // Start running the given worker in another thread.
212 static bool StartWorkerThread(std::shared_ptr<Worker> worker);
232 explicit WorkerThread(std::shared_ptr<Worker> worker)
234 worker_(std::move(worker)) {}
251 // For signalling that the worker has started.
254 // For posting tasks to the worker
262 // The isolate should only be accessed by the worker itself, or when holding
263 // the worker_mutex_ and after checking the worker state.
266 // Only accessed by the worker thread.
694 static void AddRunningWorker(std::shared_ptr<Worker> worker);
695 static void RemoveRunningWorker(const std::shared_ptr<Worker>& worker);