Fixed initializing test event queue
authorSam Lantinga <slouken@libsdl.org>
Sat, 07 Jun 2014 17:25:56 -0700
changeset 8838 b50a84131dc9
parent 8837 3fa15ed506f3
child 8839 5ba49d7a39a0
Fixed initializing test event queue
test/testatomic.c
--- a/test/testatomic.c	Sat Jun 07 17:25:35 2014 -0700
+++ b/test/testatomic.c	Sat Jun 07 17:25:56 2014 -0700
@@ -306,6 +306,7 @@
 #ifdef TEST_SPINLOCK_FIFO
     queue->lock = 0;
     SDL_AtomicSet(&queue->rwcount, 0);
+    SDL_AtomicSet(&queue->watcher, 0);
 #endif
     queue->active = SDL_TRUE;
 }