void RunThreadsOnIndividualThread(int threadnum) { int work; while (1) { work = GetThreadWork ( ); if (work == -1) break; workfunction(work); } }
void ThreadWorkerFunction(int threadnum) { int work; while (1) { work = GetThreadWork(); if (work == -1) break; // printf ("thread %i, work %i\n", threadnum, work); workfunction(work); } }
void ThreadWorkerFunction( int threadnum ){ int work; while ( 1 ) { work = GetThreadWork(); if ( work == -1 ) { break; } //Sys_FPrintf( SYS_VRB,"thread %i, work %i\n", threadnum, work); workfunction( work ); } }