* thread_pthread.c (native_stop_timer_thread): delay joinning timer
thread after unlocking mutex. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
12fadc1022
commit
409033efca
@ -1,3 +1,8 @@
|
|||||||
|
Mon Nov 2 14:43:48 2009 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* thread_pthread.c (native_stop_timer_thread): delay joinning timer
|
||||||
|
thread after unlocking mutex.
|
||||||
|
|
||||||
Mon Nov 2 13:31:14 2009 NAKAMURA Usaku <usa@ruby-lang.org>
|
Mon Nov 2 13:31:14 2009 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* thread_pthread.c (native_stop_timer_thread): need to join timer thread
|
* thread_pthread.c (native_stop_timer_thread): need to join timer thread
|
||||||
|
@ -814,9 +814,11 @@ native_stop_timer_thread(void)
|
|||||||
stopped = --system_working <= 0;
|
stopped = --system_working <= 0;
|
||||||
if (stopped) {
|
if (stopped) {
|
||||||
native_cond_signal(&timer_thread_cond);
|
native_cond_signal(&timer_thread_cond);
|
||||||
native_thread_join(timer_thread_id);
|
|
||||||
}
|
}
|
||||||
native_mutex_unlock(&timer_thread_lock);
|
native_mutex_unlock(&timer_thread_lock);
|
||||||
|
if (stopped) {
|
||||||
|
native_thread_join(timer_thread_id);
|
||||||
|
}
|
||||||
return stopped;
|
return stopped;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user