mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* thread_pthread.c (USE_SLEEPY_TIMER_THREAD): use more accurate
ifdef condtions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5cebbe8f9b
commit
3887a34c90
2 changed files with 9 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Mar 6 21:00:23 2013 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* thread_pthread.c (USE_SLEEPY_TIMER_THREAD): use more accurate
|
||||
ifdef condtions.
|
||||
|
||||
Sun Mar 3 02:30:36 2013 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* thread_pthread.c (set_nonblock): new helper function for set
|
||||
|
|
|
@ -53,12 +53,12 @@ static pthread_t timer_thread_id;
|
|||
#define USE_MONOTONIC_COND 0
|
||||
#endif
|
||||
|
||||
#ifdef __native_client__
|
||||
/* Doesn't have select(1). */
|
||||
# define USE_SLEEPY_TIMER_THREAD 0
|
||||
#else
|
||||
#if defined(HAVE_FCNTL) && defined(F_GETFL) && defined(F_SETFL) && defined(O_NONBLOCK) && !defined(__native_client__)
|
||||
/* The timer thread sleeps while only one Ruby thread is running. */
|
||||
# define USE_SLEEPY_TIMER_THREAD 1
|
||||
#else
|
||||
/* Doesn't have select(1). */
|
||||
# define USE_SLEEPY_TIMER_THREAD 0
|
||||
#endif
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue