mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
thread_pthread.c: Remove useless call to pthread_rwlock_init
This commit is contained in:
parent
a2e0815e27
commit
c6b38e43b0
Notes:
git
2022-07-07 02:57:48 +09:00
1 changed files with 1 additions and 6 deletions
|
@ -789,14 +789,9 @@ native_thread_init(struct rb_native_thread *nt)
|
|||
void
|
||||
Init_native_thread(rb_thread_t *main_th)
|
||||
{
|
||||
int r;
|
||||
if ((r = pthread_rwlock_init(&rb_internal_thread_event_hooks_rw_lock, NULL))) {
|
||||
rb_bug_errno("pthread_rwlock_init", r);
|
||||
}
|
||||
|
||||
#if defined(HAVE_PTHREAD_CONDATTR_SETCLOCK)
|
||||
if (condattr_monotonic) {
|
||||
r = pthread_condattr_init(condattr_monotonic);
|
||||
int r = pthread_condattr_init(condattr_monotonic);
|
||||
if (r == 0) {
|
||||
r = pthread_condattr_setclock(condattr_monotonic, CLOCK_MONOTONIC);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue