commit 59930a29f1a77dc2674b76651c5cfe47e3925434 parent 64f5011926622dd322d1479d5e9c1315d89abad4 Author: Michael Savage <mikejsavage@gmail.com> Date: Sat Jan 21 22:37:22 +0200 Default to NULL data in workqueue_enqueue Diffstat:
work_queue.h | | | 2 | +- |
diff --git a/work_queue.h b/work_queue.h @@ -25,5 +25,5 @@ struct WorkQueue { }; void workqueue_init( WorkQueue * queue, MemoryArena * arena, u32 num_threads ); -void workqueue_enqueue( WorkQueue * queue, WorkQueueCallback * callback, const void * data ); +void workqueue_enqueue( WorkQueue * queue, WorkQueueCallback * callback, const void * data = NULL ); void workqueue_exhaust( WorkQueue * queue );