зеркало из https://github.com/github/ruby.git
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
This commit is contained in:
Родитель
1f30b7437e
Коммит
779ce6b00e
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче