Skip to content

Commit

Permalink
fix pthread_self on wasi
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaraditya303 committed Oct 11, 2024
1 parent c1913ef commit aabf2fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/thread_pthread_stubs.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ pthread_join(pthread_t thread, void** value_ptr)

PyAPI_FUNC(pthread_t) pthread_self(void)
{
return 0;
return (pthread_t)(uintptr_t)&py_tls_entries;
}

int
Expand Down

0 comments on commit aabf2fe

Please sign in to comment.