medfall

A super great game engine
Log | Files | Refs

commit 8d3a7209d7bc3cf95d154713509e16986003c729
parent 47af84a1539d9bad52b4c60eb78b0cd3efbd52e2
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Wed,  8 Nov 2017 19:22:57 +0200

Oops in MPSC

Diffstat:
mpsc.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mpsc.h b/mpsc.h @@ -60,7 +60,7 @@ public: return false; *x = node->data( $ ); - reader_pos( $ ) = r + 1; + reader_pos( $ ) = ( r + 1 ) & COUNTER_MASK; store_release( &node->seq, ( ( r + N ) & COUNTER_MASK ) | EMPTY_BIT ); return true;