summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-29 17:55:03 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-29 17:55:03 +0000
commit6f1ce28d624007f1d7688865a782c3ba4ad376a0 (patch)
tree620bb307bedcd46f26eaec1fa222bf9f851ec1ce /thread.c
parentc90ff68d3271b9b7e981152f11db6ea5f4f6061d (diff)
downloadruby-6f1ce28d624007f1d7688865a782c3ba4ad376a0.tar.gz
* thread.c (rb_threadptr_execute_interrupts_common): remove
meaningless native_thread_yield(). It never close a race. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/thread.c b/thread.c
index 0e10768129..13e3e6ecba 100644
--- a/thread.c
+++ b/thread.c
@@ -1263,10 +1263,6 @@ rb_threadptr_execute_interrupts_common(rb_thread_t *th)
{
rb_atomic_t interrupt;
- if (GET_VM()->main_thread == th) {
- while (rb_signal_buff_size() && !th->exec_signal) native_thread_yield();
- }
-
if (th->raised_flag) return;
while ((interrupt = ATOMIC_EXCHANGE(th->interrupt_flag, 0)) != 0) {