commit f2468f844a3a11e60ac024f4034a3a6f6f159f93 parent 6b0f52db10934bbd7fcb65a0efdec65690ee65c1 Author: Michael Savage <mikejsavage@gmail.com> Date: Sat Jun 4 21:14:24 +0100 Use continue instead of empty loop Diffstat:
work_queue.cc | | | 4 | +++- |
diff --git a/work_queue.cc b/work_queue.cc @@ -71,7 +71,9 @@ void workqueue_init( WorkQueue * queue, MemoryArena * arena, u32 num_threads ) { } // wait until all threads have a local copy of ThreadInfo - while( atomic_get_u32( &started_threads ) < num_threads ); + while( atomic_get_u32( &started_threads ) < num_threads ) { + continue; + } } void workqueue_enqueue( WorkQueue * queue, WorkQueueCallback * callback, void * data ) {