test/testatomic.c
changeset 8838 b50a84131dc9
parent 8149 681eb46b8ac4
child 8981 68e0819f0f56
equal deleted inserted replaced
8837:3fa15ed506f3 8838:b50a84131dc9
   304     SDL_AtomicSet(&queue->enqueue_pos, 0);
   304     SDL_AtomicSet(&queue->enqueue_pos, 0);
   305     SDL_AtomicSet(&queue->dequeue_pos, 0);
   305     SDL_AtomicSet(&queue->dequeue_pos, 0);
   306 #ifdef TEST_SPINLOCK_FIFO
   306 #ifdef TEST_SPINLOCK_FIFO
   307     queue->lock = 0;
   307     queue->lock = 0;
   308     SDL_AtomicSet(&queue->rwcount, 0);
   308     SDL_AtomicSet(&queue->rwcount, 0);
       
   309     SDL_AtomicSet(&queue->watcher, 0);
   309 #endif
   310 #endif
   310     queue->active = SDL_TRUE;
   311     queue->active = SDL_TRUE;
   311 }
   312 }
   312 
   313 
   313 static SDL_bool EnqueueEvent_LockFree(SDL_EventQueue *queue, const SDL_Event *event)
   314 static SDL_bool EnqueueEvent_LockFree(SDL_EventQueue *queue, const SDL_Event *event)