Skip to content

Commit

Permalink
fix setting thread name in eventloop and spesh worker
Browse files Browse the repository at this point in the history
  • Loading branch information
timo committed Jul 16, 2020
1 parent 4450430 commit 953bac6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/io/eventloop.c
Expand Up @@ -83,7 +83,7 @@ static void enter_loop(MVMThreadContext *tc, MVMCallsite *callsite, MVMRegister
uv_loop_t *loop = tc->instance->event_loop;
uv_async_t *async = tc->instance->event_loop_wakeup;

#ifdef HAVE_PTHREAD_SETNAME_NP
#ifdef MVM_HAS_PTHREAD_SETNAME_NP
pthread_setname_np(pthread_self(), "async io thread");
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/spesh/worker.c
Expand Up @@ -15,7 +15,7 @@ static void worker(MVMThreadContext *tc, MVMCallsite *callsite, MVMRegister *arg
tc->instance->boot_types.BOOTArray);
});

#ifdef HAVE_PTHREAD_SETNAME_NP
#ifdef MVM_HAS_PTHREAD_SETNAME_NP
pthread_setname_np(pthread_self(), "spesh optimizer");
#endif

Expand Down

0 comments on commit 953bac6

Please sign in to comment.