src/thread/os2/SDL_systhread.c
changeset 1443 9ebbbb4ae53b
parent 1442 e3242177fe4a
child 1662 782fd950bd46
child 1895 c121d94672cb
child 4159 a1b03ba2fcd0
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);