comparison src/thread/os2/SDL_systhread.c @ 1443:9ebbbb4ae53b

Fixed some OpenWatcom warnings
author Sam Lantinga <slouken@libsdl.org>
date Sun, 26 Feb 2006 19:37:40 +0000
parents e3242177fe4a
children 782fd950bd46 c121d94672cb a1b03ba2fcd0
comparison
equal deleted inserted replaced
1442:e3242177fe4a 1443:9ebbbb4ae53b
70 pThreadParms->pfnCurrentEndThread = pfnEndThread; 70 pThreadParms->pfnCurrentEndThread = pfnEndThread;
71 // Also save the real parameters we have to pass to thread function 71 // Also save the real parameters we have to pass to thread function
72 pThreadParms->args = args; 72 pThreadParms->args = args;
73 // Start the thread using the runtime library of calling app! 73 // Start the thread using the runtime library of calling app!
74 thread->threadid = thread->handle = (*pfnBeginThread)(threadfunc, NULL, 512*1024, pThreadParms); 74 thread->threadid = thread->handle = (*pfnBeginThread)(threadfunc, NULL, 512*1024, pThreadParms);
75 if (thread->threadid<=0) 75 if ((int)thread->threadid <= 0)
76 { 76 {
77 SDL_SetError("Not enough resources to create thread"); 77 SDL_SetError("Not enough resources to create thread");
78 return(-1); 78 return(-1);
79 } 79 }
80 return(0); 80 return(0);