medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 3ddbd0db73ff252a016fb176d719f964856c7091
parent 33167a818ac845f110321eaa2f5bca8f5c04098f
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Tue Dec 27 17:49:57 +0200

Properly initialise MPSC queue

Diffstat:
nonblocking_fixed_mpsc_queue.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nonblocking_fixed_mpsc_queue.h b/nonblocking_fixed_mpsc_queue.h @@ -10,8 +10,8 @@ template< typename T, size_t N > class NonblockingFixedMPSCQueue { public: NonblockingFixedMPSCQueue() { + store_relaxed( &num_elems, 0 ); head = 0; - num_elems = 0; reader_acquired = false; mutex_init( &mutex ); }