comparison test/testatomic.c @ 5116:e337f792c6a7

Fixed compiling under Visual Studio
author Sam Lantinga <slouken@libsdl.org>
date Thu, 27 Jan 2011 15:31:00 -0800
parents 42a7591530d5
children 427998ff3bcf
comparison
equal deleted inserted replaced
5115:686d795b1b29 5116:e337f792c6a7
524 static int FIFO_Reader(void* _data) 524 static int FIFO_Reader(void* _data)
525 { 525 {
526 ReaderData *data = (ReaderData *)_data; 526 ReaderData *data = (ReaderData *)_data;
527 SDL_EventQueue *queue = data->queue; 527 SDL_EventQueue *queue = data->queue;
528 SDL_Event event; 528 SDL_Event event;
529 int index;
530 529
531 if (data->lock_free) { 530 if (data->lock_free) {
532 for ( ; ; ) { 531 for ( ; ; ) {
533 if (DequeueEvent_LockFree(queue, &event)) { 532 if (DequeueEvent_LockFree(queue, &event)) {
534 WriterData *writer = (WriterData*)event.user.data1; 533 WriterData *writer = (WriterData*)event.user.data1;