mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
10485be8c2
commit
b445543974
1 changed files with 0 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue