// mark that this thread is complete thread_finished_check = TRUE;
// hmm - for some reason, just pass the PTRSZVAL that was passed to ThreadTo as the result. return GetThreadParam( thread ); } int main( void ) { main_thread = MakeThread(); ThreadTo( ThreadProc, 0 ); // wait for the thread to finish its thread identity check. while( !thread_finished_check ) Relinquish(); return 0; }