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
@ -789,14 +789,9 @@ native_thread_init(struct rb_native_thread *nt)
|
|||||||
void
|
void
|
||||||
Init_native_thread(rb_thread_t *main_th)
|
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 defined(HAVE_PTHREAD_CONDATTR_SETCLOCK)
|
||||||
if (condattr_monotonic) {
|
if (condattr_monotonic) {
|
||||||
r = pthread_condattr_init(condattr_monotonic);
|
int r = pthread_condattr_init(condattr_monotonic);
|
||||||
if (r == 0) {
|
if (r == 0) {
|
||||||
r = pthread_condattr_setclock(condattr_monotonic, CLOCK_MONOTONIC);
|
r = pthread_condattr_setclock(condattr_monotonic, CLOCK_MONOTONIC);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user