diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-10 12:51:37 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-10 12:51:37 +0000 |
commit | c3f3d77225499eba2e2f562024413dd2794c0139 (patch) | |
tree | 70d92934a0490f55e20dbf50aae805f5d9e75706 /configure.in | |
parent | fa5cd00340d81b9771866cf635ddc4266546a15f (diff) | |
download | ruby-c3f3d77225499eba2e2f562024413dd2794c0139.tar.gz |
Fixes threading on NativeClient.
* thread_pthread.c (timer_thread_sleep): Extracted out a function from
thread_timer(). Added an alternative implementation for platforms
that lacks select(2) or pipe(2).
(rb_thread_create_timer_thread, native_cond_initialize,
native_cond_destroy): Replaced wrong HAVE_XXX checks.
* configure.in (pthread_attr_init): New check.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.in b/configure.in index d88d286691..7b2060e1dc 100644 --- a/configure.in +++ b/configure.in @@ -2015,6 +2015,11 @@ if test x"$enable_pthread" = xyes; then thr_stksegment pthread_stackseg_np pthread_getthrds_np \ pthread_cond_init pthread_condattr_setclock pthread_condattr_init \ pthread_sigmask) + if test "${host_os}" = "nacl"; then + ac_cv_func_pthread_attr_init=no + else + AC_CHECK_FUNCS(pthread_attr_init) + fi fi if test x"$ac_cv_header_ucontext_h" = xyes; then if test x"$rb_with_pthread" = xyes; then |