src/worker.cc
// This is a helper function to create new threads with pthreads.
This is a helper function to create new threads with pthreads.
This is a helper function to create new threads with pthreads .
static void *ThreadSpawnerGeneric(void *ptr) {
  WorkerThread *worker = static_cast<WorkerThread*>(ptr);
  worker->StartRoutine();
  return NULL;
}
static void * ThreadSpawnerGeneric ( void * ptr ) { WorkerThread * worker = static_cast < WorkerThread * > ( ptr ) ; worker -> StartRoutine ( ) ; return NULL ; }
This is a helper function to create new threads with pthreads.
This is a helper function to create new threads with pthreads .