Skip to content

Commit 27e28b0

Browse files
committed
common: Set thread name for cm_pipeline_thread
Without setting the thread name, the name is inherited from the spawn thread, which is the graphics thread in this case. This was confusing when debugging the multithread behavior.
1 parent e05aa5a commit 27e28b0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/common.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,8 @@ static void *cm_pipeline_thread(void *data)
377377
blog(LOG_DEBUG, "entering cm_pipeline_thread data=%p", data);
378378
struct cm_source *src = data;
379379

380+
os_set_thread_name("color-monitor");
381+
380382
pthread_mutex_lock(&src->pipeline_mutex);
381383
while (!src->request_exit) {
382384
int next = (src->i_read_queue + 1) % CM_SURFACE_QUEUE_SIZE;

0 commit comments

Comments
 (0)