Lines Matching defs:Worker
188 class Worker : public std::enable_shared_from_this<Worker> {
190 explicit Worker(const char* script);
191 ~Worker();
195 // created the Worker.
201 // This function should only be called by the thread that created the Worker.
212 static bool StartWorkerThread(std::shared_ptr<Worker> worker);
232 explicit WorkerThread(std::shared_ptr<Worker> worker)
239 std::shared_ptr<Worker> worker_;
259 // need locking, but accessing the Worker's data member does.)
694 static void AddRunningWorker(std::shared_ptr<Worker> worker);
695 static void RemoveRunningWorker(const std::shared_ptr<Worker>& worker);
725 static std::unordered_set<std::shared_ptr<Worker>> running_workers_;