test/testatomic.c
changeset 11272 d60ede5a0c2e
parent 10737 3406a0f8b041
child 11416 7e7d8a125d6a
     1.1 --- a/test/testatomic.c	Sun Aug 13 21:05:15 2017 -0700
     1.2 +++ b/test/testatomic.c	Sun Aug 13 21:06:52 2017 -0700
     1.3 @@ -117,7 +117,7 @@
     1.4  static SDL_sem *threadDone;
     1.5  
     1.6  static
     1.7 -int adder(void* junk)
     1.8 +int SDLCALL adder(void* junk)
     1.9  {
    1.10      unsigned long N=NInter;
    1.11      SDL_Log("Thread subtracting %d %lu times\n",CountInc,N);
    1.12 @@ -495,7 +495,7 @@
    1.13      char padding[SDL_CACHELINE_SIZE-(sizeof(SDL_EventQueue*)+sizeof(int)*NUM_WRITERS+sizeof(int)+sizeof(SDL_bool))%SDL_CACHELINE_SIZE];
    1.14  } ReaderData;
    1.15  
    1.16 -static int FIFO_Writer(void* _data)
    1.17 +static int SDLCALL FIFO_Writer(void* _data)
    1.18  {
    1.19      WriterData *data = (WriterData *)_data;
    1.20      SDL_EventQueue *queue = data->queue;
    1.21 @@ -530,7 +530,7 @@
    1.22      return 0;
    1.23  }
    1.24  
    1.25 -static int FIFO_Reader(void* _data)
    1.26 +static int SDLCALL FIFO_Reader(void* _data)
    1.27  {
    1.28      ReaderData *data = (ReaderData *)_data;
    1.29      SDL_EventQueue *queue = data->queue;
    1.30 @@ -570,7 +570,7 @@
    1.31  
    1.32  #ifdef TEST_SPINLOCK_FIFO
    1.33  /* This thread periodically locks the queue for no particular reason */
    1.34 -static int FIFO_Watcher(void* _data)
    1.35 +static int SDLCALL FIFO_Watcher(void* _data)
    1.36  {
    1.37      SDL_EventQueue *queue = (SDL_EventQueue *)_data;
    1.38