src/worker.cc
// Block until thread has exited.
Block until thread has exited.
Block until thread has exited .
bool WorkerThread::JoinThread() {
  int result = pthread_join(thread_, NULL);
  if (result) {
    logprintf(0, "Process Error: pthread_join failed - error %d\n", result);
    status_ = false;
  }
  return (!result);
}
bool WorkerThread :: JoinThread ( ) { int result = pthread_join ( thread_ , NULL ) ; if ( result ) { logprintf ( 0 , " \n " , result ) ; status_ = false ; } return ( ! result ) ; }
Block until thread has exited.
Block until thread has exited .
// 0 is pthreads success.