diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-24 03:15:58 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-24 03:15:58 +0000 |
commit | 30edf111c5f409e161ec4ff9c4f4d659f2deaf54 (patch) | |
tree | 52e5f95732f4becc63b02a68a5ca55357998c288 /thread.c | |
parent | b906f0ed17f4824f12d7c939cfc21c7881f12dfd (diff) | |
download | ruby-30edf111c5f409e161ec4ff9c4f4d659f2deaf54.tar.gz |
* thread.c (rb_thread_terminate_all): add a comment why infinite
sleep is safe.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -440,6 +440,10 @@ rb_thread_terminate_all(void) TH_PUSH_TAG(th); if ((state = TH_EXEC_TAG()) == 0) { + /* + * Thread exiting routine in thread_start_func_2 notify + * me when the last sub-thread exit. + */ native_sleep(th, 0); RUBY_VM_CHECK_INTS_BLOCKING(th); } |