aboutsummaryrefslogtreecommitdiffstats
path: root/thread_pthread.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-10 14:47:04 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-10 14:47:04 +0000
commit779ce6b00ea711f1f6cffaebf2d8a837bb161a69 (patch)
treef7ad8634b371471c3aa02313f0634d5a95c32891 /thread_pthread.c
parent1f30b7437ec01f53b0656e325f1d100f04c0b2fa (diff)
downloadruby-779ce6b00ea711f1f6cffaebf2d8a837bb161a69.tar.gz
thread_pthread.c: compare with pthread_equal
* thread_pthread.c (ubf_select): compare thread_id with pthread_equal() but not directly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index a00d7af1bf..ba7aa1ddca 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -1172,7 +1172,7 @@ ubf_select(void *ptr)
* In the other hands, we shouldn't call rb_thread_wakeup_timer_thread()
* if running on timer thread because it may make endless wakeups.
*/
- if (pthread_self() != timer_thread_id)
+ if (!pthread_equal(pthread_self(), timer_thread_id))
rb_thread_wakeup_timer_thread();
ubf_select_each(th);
}