mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
thread_pthread.c: additional UBF_TIMER == UBF_TIMER_PTHREAD guards
Hopefully this makes the code easier-to-follow [ruby-core:88475] [Misc #14937] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
425a820d17
commit
5dca7d86b9
1 changed files with 3 additions and 2 deletions
|
@ -1596,7 +1596,8 @@ rb_timer_create(rb_pid_t current)
|
|||
else
|
||||
rb_warn("timer_create failed: %s, signals racy", strerror(errno));
|
||||
#endif
|
||||
rb_timer_pthread_create(current);
|
||||
if (UBF_TIMER == UBF_TIMER_PTHREAD)
|
||||
ubf_timer_pthread_create(current);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -1620,7 +1621,7 @@ rb_thread_create_timer_thread(void)
|
|||
sigwait_th = THREAD_INVALID;
|
||||
timer_thread_pipe.owner_process = current;
|
||||
}
|
||||
else {
|
||||
else if (UBF_TIMER == UBF_TIMER_PTHREAD) {
|
||||
/* UBF_TIMER_PTHREAD needs to recreate after fork */
|
||||
rb_timer_pthread_create(current);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue