Project

General

Profile

Bug #15130 » 0001-thread_pthread.c-fall-back-to-UBF_TIMER_PTHREAD-for-.patch

normalperson (Eric Wong), 09/21/2018 12:48 AM

View differences:

thread_pthread.c
defined(CLOCK_MONOTONIC) && defined(USE_UBF_LIST)
/* preferred */
# define UBF_TIMER UBF_TIMER_POSIX
# elif defined(USE_UBF_LIST)
# elif defined(RUBY_ALL_IO_NONBLOCKING)
/*
* TODO: https://bugs.ruby-lang.org/issues/14968
* we'll be racy without SIGVTALRM for ubf_list
* This will be best if we make all IO non-blocking by default
*/
# define UBF_TIMER UBF_TIMER_NONE
# else
/* safe, but inefficient */
# define UBF_TIMER UBF_TIMER_PTHREAD
# else
/* we'll be racy without SIGVTALRM for ubf_list */
# define UBF_TIMER UBF_TIMER_NONE
# endif
#endif
-
(1-1/2)