src/thread/pthread/SDL_systhread.c
branchSDL-1.2
changeset 4187 b8d7c7a46ff7
parent 4159 a1b03ba2fcd0
child 6137 4720145f848b
equal deleted inserted replaced
4186:5bacec0933f5 4187:b8d7c7a46ff7
    97 }
    97 }
    98 
    98 
    99 /* WARNING:  This may not work for systems with 64-bit pid_t */
    99 /* WARNING:  This may not work for systems with 64-bit pid_t */
   100 Uint32 SDL_ThreadID(void)
   100 Uint32 SDL_ThreadID(void)
   101 {
   101 {
   102 	return((Uint32)pthread_self());
   102 	return((Uint32)((size_t)pthread_self()));
   103 }
   103 }
   104 
   104 
   105 void SDL_SYS_WaitThread(SDL_Thread *thread)
   105 void SDL_SYS_WaitThread(SDL_Thread *thread)
   106 {
   106 {
   107 	pthread_join(thread->handle, 0);
   107 	pthread_join(thread->handle, 0);