1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-22 12:34:27 +00:00

Wake the global work scheduler when we remove a work item from the unqueued work pointer.

This commit is contained in:
Con Kolivas 2014-01-31 21:57:50 +11:00 committed by Noel Maersk
parent 2cea7ce439
commit ee7fb11cfb

View File

@ -6330,6 +6330,7 @@ struct work *get_queued(struct cgpu_info *cgpu)
if (unlikely(stale_work(work, false))) { if (unlikely(stale_work(work, false))) {
discard_work(work); discard_work(work);
work = NULL; work = NULL;
wake_gws();
goto out_unlock; goto out_unlock;
} }
__add_queued(cgpu, work); __add_queued(cgpu, work);