mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
thread: use pthread_equal to compare thread ids
This commit is contained in:
parent
edbfd180d0
commit
f2be2923e6
2 changed files with 3 additions and 3 deletions
|
|
@ -480,5 +480,5 @@ void pw_thread_loop_accept(struct pw_thread_loop *loop)
|
|||
SPA_EXPORT
|
||||
bool pw_thread_loop_in_thread(struct pw_thread_loop *loop)
|
||||
{
|
||||
return loop->running && pthread_self() == loop->thread;
|
||||
return loop->running && pthread_equal(loop->thread, pthread_self());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue