comparison test/torturethread.c @ 1769:290b5baf2fca

Fixed bug #215 The current SVN trunk is missing the SDLCALL specifier at numerous locations. It has to be added for all (possibly user provided) callbacks. I stumbled over this while creating a makefile for the OpenWatcom compiler for Win32.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 07 May 2006 03:40:06 +0000
parents 3b08574f4c60
children 782fd950bd46 c121d94672cb
comparison
equal deleted inserted replaced
1768:814f9f2c7a33 1769:290b5baf2fca
18 { 18 {
19 SDL_Quit(); 19 SDL_Quit();
20 exit(rc); 20 exit(rc);
21 } 21 }
22 22
23 int SubThreadFunc(void *data) { 23 int SDLCALL SubThreadFunc(void *data) {
24 while(! *(int volatile *)data) { 24 while(! *(int volatile *)data) {
25 ; /*SDL_Delay(10);*/ /* do nothing */ 25 ; /*SDL_Delay(10);*/ /* do nothing */
26 } 26 }
27 return 0; 27 return 0;
28 } 28 }
29 29
30 int ThreadFunc(void *data) { 30 int SDLCALL ThreadFunc(void *data) {
31 SDL_Thread *sub_threads[NUMTHREADS]; 31 SDL_Thread *sub_threads[NUMTHREADS];
32 int flags[NUMTHREADS]; 32 int flags[NUMTHREADS];
33 int i; 33 int i;
34 int tid = (int)(uintptr_t)data; 34 int tid = (int)(uintptr_t)data;
35 35