Lines Matching defs:workers
22 static struct worker_desc * workers;
23 /** Number of workers started */
54 workers[id].worker_thr = thread_self();
55 workers[id].id = id;
56 workers[id].core_id = disp_get_core_id();
60 thread_set_tls(&(workers[id]));
64 // signal exit to other workers
72 /** Work-stealing loop for workers */
81 workers[id].worker_thr = thread_self();
82 workers[id].id = id;
83 workers[id].core_id = disp_get_core_id();
87 thread_set_tls( &(workers[id]));
96 int success = steal(_tweed_top_, &workers[steal_id]);
114 workers[id].task_desc_stack = (struct generic_task_desc *) stack_start;
115 memset(workers[id].task_desc_stack, 0, TWEED_TASK_STACK_SIZE);
116 workers[id].bot = NULL;
117 // TODO - when mutexes work - workers[id].lock =
119 // thread_mutex_init (workers[id].lock);
144 workers = (struct worker_desc *) malloc (
146 // alloc task stack space for all workers, leave space for alignment
223 tls->bot = workers[tls->id].task_desc_stack;
225 return workers[tls->id].task_desc_stack;
230 * workers can steal tasks from it.
244 * workers can steal tasks from it.