Project

General

Profile

Feature #13514 ยป 0001-thread_pthread.c-native_sleep-preserve-old-unblock-f.patch

normalperson (Eric Wong), 04/26/2017 09:30 PM

View differences:

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);
}
-
    (1-1/1)