1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* thread.c (rb_thread_stop_timer_thread): should clear

timer_thread_id after stopping it.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2008-04-22 04:26:44 +00:00
parent 9c77076296
commit 707c50d341
4 changed files with 11 additions and 4 deletions

View file

@ -1,3 +1,8 @@
Tue Apr 22 13:19:48 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* thread.c (rb_thread_stop_timer_thread): should clear
timer_thread_id after stopping it.
Tue Apr 22 13:12:58 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* thread.c (thread_join): remove the current thread from the join list

View file

@ -155,7 +155,3 @@ assert_equal 'ok', %q{
:ng
end
}, "[ruby-dev:34236]"
assert_normal_exit %q{
exec "/"
}

View file

@ -229,3 +229,8 @@ assert_finish 3, %{
end
th.join
}
assert_normal_exit %q{
STDERR.reopen(STDOUT)
exec "/"
}

View file

@ -2008,6 +2008,7 @@ rb_thread_stop_timer_thread(void)
if (timer_thread_id) {
system_working = 0;
native_thread_join(timer_thread_id);
timer_thread_id = 0;
}
}