|
@@ -188,6 +188,9 @@ static void start_working(void)
|
|
|
wrkctrlstate.worker_thread = WT_NOT_RUNNING;
|
|
wrkctrlstate.worker_thread = WT_NOT_RUNNING;
|
|
|
cerr << "Could not start worker thread\n";
|
|
cerr << "Could not start worker thread\n";
|
|
|
}
|
|
}
|
|
|
|
|
+ char thread_name[16];
|
|
|
|
|
+ snprintf(thread_name, sizeof(thread_name), "prob:%2d wrkr:%2d", wrkctrlstate.current_problem->problemid, wrkctrlstate.worker_id);
|
|
|
|
|
+ pthread_setname_np(wrkctrlstate.worker_thread, thread_name);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
static void dpconn_event_cb(struct bufferevent *bev, short events,
|
|
static void dpconn_event_cb(struct bufferevent *bev, short events,
|