Skip to content

Commit 9dcccc4

Browse files
authored
Use uv_thread_equal to compare thread IDs (#211)
And not `==`.
1 parent 94ace4c commit 9dcccc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/threading.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ void jl_init_heartbeat(void)
969969
int jl_inside_heartbeat_thread(void)
970970
{
971971
uv_thread_t curr_uvtid = uv_thread_self();
972-
return curr_uvtid == heartbeat_uvtid;
972+
return uv_thread_equal(&curr_uvtid, &heartbeat_uvtid);
973973
}
974974

975975
// enable/disable heartbeats

0 commit comments

Comments
 (0)