12 pthread_create(&worker_thread, NULL, &Thread::do_work_thunk, this);
18 pthread_kill(worker_thread, SIGHUP);
19 if (pthread_join(worker_thread, NULL) == -1) {
20 perror("pthread_join");
25 void *Thread::do_work_thunk(void *arg)
27 Thread *thread = reinterpret_cast<Thread *>(arg);