Skip to content

Commit 39fab89

Browse files
committed
Remove sched_yield() from worker thread task pickup
Seems not needed and has a big performance impact.
1 parent 3057666 commit 39fab89

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

common/workerpool.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ void *worker_thread(void *p)
8181
zarray_get_volatile(wp->tasks, wp->taskspos, &task);
8282
wp->taskspos++;
8383
pthread_mutex_unlock(&wp->mutex);
84-
sched_yield();
8584

8685
// we've been asked to exit.
8786
if (task->f == NULL)

0 commit comments

Comments
 (0)