Feature #13514 ยป 0001-thread_pthread.c-native_sleep-preserve-old-unblock-f.patch
thread_pthread.c | ||
---|---|---|
GVL_UNLOCK_BEGIN();
|
||
{
|
||
struct rb_unblock_callback oldubf;
|
||
native_mutex_lock(lock);
|
||
oldubf = th->unblock;
|
||
th->unblock.func = ubf_pthread_cond_signal;
|
||
th->unblock.arg = th;
|
||
... | ... | |
else
|
||
native_cond_timedwait(cond, lock, &timeout);
|
||
}
|
||
th->unblock.func = 0;
|
||
th->unblock.arg = 0;
|
||
th->unblock = oldubf;
|
||
native_mutex_unlock(lock);
|
||
}
|
||
-
|