Bug #13794 » sched_yield_1.patch
| thread_pthread.c | ||
|---|---|---|
|
native_mutex_destroy(&vm->gvl.lock);
|
||
|
}
|
||
|
static void
|
||
|
gvl_atfork(rb_vm_t *vm)
|
||
|
{
|
||
|
gvl_init(vm);
|
||
|
gvl_acquire(vm, GET_THREAD());
|
||
|
}
|
||
|
#define NATIVE_MUTEX_LOCK_DEBUG 0
|
||
|
static void
|
||
| ... | ... | |
|
{-1, -1}, /* low priority */
|
||
|
};
|
||
|
static void
|
||
|
gvl_atfork(rb_vm_t *vm)
|
||
|
{
|
||
|
timer_thread_pipe.writing = 0;
|
||
|
gvl_init(vm);
|
||
|
gvl_acquire(vm, GET_THREAD());
|
||
|
}
|
||
|
NORETURN(static void async_bug_fd(const char *mesg, int errno_arg, int fd));
|
||
|
static void
|
||
|
async_bug_fd(const char *mesg, int errno_arg, int fd)
|
||