summaryrefslogtreecommitdiff
path: root/thread_pthread.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-23 03:47:54 (GMT)
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-23 03:47:54 (GMT)
commitb445543974c999cc06468115d9b0b19535f821cd (patch)
treed9eb4e0039a1a6ce7a5109cafa36b2a11d265489 /thread_pthread.c
parent10485be8c2acd97b165c5d6bd9e53122a821562d (diff)
thread_pthread.c (native_sleep): do not clear unblock.arg
It is unnecessary to clear unblock.arg once unblock.func is cleared, and unblock_function_clear in thread.c doesn't touch it, either. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index 40cb601..6433849 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -1069,7 +1069,6 @@ native_sleep(rb_thread_t *th, struct timespec *timeout_rel)
native_cond_timedwait(cond, lock, &timeout);
}
th->unblock.func = 0;
- th->unblock.arg = 0;
rb_native_mutex_unlock(lock);
}