comparison src/thread/pth/SDL_systhread.c @ 397:283d348cb624

Pth threading bug fix
author Sam Lantinga <slouken@libsdl.org>
date Mon, 10 Jun 2002 20:42:02 +0000
parents 1d74ddc90cb2
children b8d311d90021
comparison
equal deleted inserted replaced
396:11d6eed68dba 397:283d348cb624
62 return(-1); 62 return(-1);
63 } 63 }
64 pth_attr_set(type, PTH_ATTR_JOINABLE, TRUE); 64 pth_attr_set(type, PTH_ATTR_JOINABLE, TRUE);
65 65
66 /* Create the thread and go! */ 66 /* Create the thread and go! */
67 if ( pth_spawn(type, RunThread, args) == NULL ) { 67 thread->handle = pth_spawn(type, RunThread, args);
68 if ( thread->handle == NULL ) {
68 SDL_SetError("Not enough resources to create thread"); 69 SDL_SetError("Not enough resources to create thread");
69 return(-1); 70 return(-1);
70 } 71 }
71 return(0); 72 return(0);
72 } 73 }