commit 7a60737dd07c8dba5288270f4dacea05f1e44ae4 parent b371d1a594fd0828bd16987c925a3e55eb76659e Author: Michael Savage <mikejsavage@gmail.com> Date: Mon Mar 21 23:02:54 +0000 Use atomic_set_u16 instead of atomic_set Diffstat:
work_queue.cc | | | 2 | +- |
diff --git a/work_queue.cc b/work_queue.cc @@ -85,7 +85,7 @@ void workqueue_enqueue( WorkQueue * queue, WorkQueueCallback * callback, void * queue->jobs_queued++; write_barrier(); - atomic_set( &queue->tail, ( tail + 1 ) % array_count( queue->jobs ) ); + atomic_set_u16( &queue->tail, ( tail + 1 ) % array_count( queue->jobs ) ); semaphore_signal( &queue->sem ); }