diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-18 06:05:17 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-18 06:05:17 +0000 |
commit | 6e0d69e4a72c7a9d9cf5172bd9b74633d7259f9d (patch) | |
tree | 556bb78130a9788ee921f36b2b06e5ce0dfed323 | |
parent | d7ddbff2954ba22b71bdfeba4b94e1c4fb91efb0 (diff) | |
download | ruby-6e0d69e4a72c7a9d9cf5172bd9b74633d7259f9d.tar.gz |
Revert "thread_sync.c (do_sleep): avoid thread-switch/interrupt check"
This reverts commit d7ddbff2954ba22b71bdfeba4b94e1c4fb91efb0 (r64436)
Seems worthless at preventing CI failures
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | thread_sync.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/thread_sync.c b/thread_sync.c index 777b08a271..5e511af0db 100644 --- a/thread_sync.c +++ b/thread_sync.c @@ -1358,12 +1358,6 @@ static VALUE do_sleep(VALUE args) { struct sleep_call *p = (struct sleep_call *)args; - - if (rb_obj_class(p->mutex) == rb_cMutex) { - return rb_mutex_sleep(p->mutex, p->timeout); - } - - /* FIXME: Mutex_m may still check interrupts here */ return rb_funcallv(p->mutex, id_sleep, 1, &p->timeout); } |