Lines Matching refs:Worker
116 // (e.g. worker threads having finished a GEMM and waiting until the next GEMM)
149 // This is how the master thread waits for all the worker threads
205 // A workload for a worker.
213 // A worker thread.
214 class Worker {
223 explicit Worker(BlockingCounter* counter_to_decrement_when_ready)
232 ~Worker() {
237 // Changes State; may be called from either the worker thread
241 ScopedProfilingLabel label("Worker::ChangeState");
269 ScopedProfilingLabel label("Worker::ThreadFunc");
302 static_cast<Worker*>(arg)->ThreadFunc();
306 // Called by the master thead to give this worker work to do.
307 // It is only legal to call this if the worker
336 // master thread of when this worker switches to the 'Ready' state.
358 // Give work to a specific worker.
365 // If any new worker has to be created, this function waits for it to
373 workers_.push_back(new Worker(&counter_to_decrement_when_ready_));
384 std::vector<Worker*> workers_;
391 // RHS has been packed by the master thread; each worker thread
482 // The maximum number of worker threads to use (in addition
489 // For N-threaded operations, we will use only N-1 worker threads
558 // pack a block of RHS and then start worker threads to pack a block of LHS
592 // We choose to use a worker thread for all but one
621 // Give work to each worker.