version 1.14, 2002/04/06 19:28:00
|
version 1.15, 2002/05/21 02:43:33
|
|
|
"Initializing thread with work function and parameters: parm = %p", | "Initializing thread with work function and parameters: parm = %p", |
parm); | parm); |
| |
th->remove_tsd("work func"); |
th->delete_tsd("work func"); |
th->put_tsd("work func", NULL, | th->put_tsd("work func", NULL, |
sizeof( PEGASUS_THREAD_RETURN (PEGASUS_THREAD_CDECL *)(void *)), | sizeof( PEGASUS_THREAD_RETURN (PEGASUS_THREAD_CDECL *)(void *)), |
(void *)work); | (void *)work); |
th->remove_tsd("work parm"); |
th->delete_tsd("work parm"); |
th->put_tsd("work parm", NULL, sizeof(void *), parm); | th->put_tsd("work parm", NULL, sizeof(void *), parm); |
th->remove_tsd("blocking sem"); |
th->delete_tsd("blocking sem"); |
if(blocking != 0 ) | if(blocking != 0 ) |
th->put_tsd("blocking sem", NULL, sizeof(Semaphore *), blocking); | th->put_tsd("blocking sem", NULL, sizeof(Semaphore *), blocking); |
| |
|
|
| |
if(th != 0) | if(th != 0) |
{ | { |
th->remove_tsd("work func"); |
th->delete_tsd("work func"); |
th->put_tsd("work func", NULL, | th->put_tsd("work func", NULL, |
sizeof( PEGASUS_THREAD_RETURN (PEGASUS_THREAD_CDECL *)(void *)), | sizeof( PEGASUS_THREAD_RETURN (PEGASUS_THREAD_CDECL *)(void *)), |
(void *)&_undertaker); | (void *)&_undertaker); |
th->remove_tsd("work parm"); |
th->delete_tsd("work parm"); |
th->put_tsd("work parm", NULL, sizeof(void *), th); | th->put_tsd("work parm", NULL, sizeof(void *), th); |
| |
// signal the thread's sleep semaphore to awaken it | // signal the thread's sleep semaphore to awaken it |