mirror of
https://github.com/ruby/ruby.git
synced 2025-09-16 00:54:01 +02:00
thread_win32.c: disable currently unused functions
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d3ca0b29a6
commit
665333e314
2 changed files with 5 additions and 1 deletions
1
thread.c
1
thread.c
|
@ -543,6 +543,7 @@ thread_cleanup_func(void *th_ptr, int atfork)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
native_mutex_destroy(&th->interrupt_lock);
|
native_mutex_destroy(&th->interrupt_lock);
|
||||||
|
native_cond_destroy(&th->interrupt_cond);
|
||||||
native_thread_destroy(th);
|
native_thread_destroy(th);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -393,6 +393,7 @@ native_cond_signal(rb_nativethread_cond_t *cond)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
static void
|
static void
|
||||||
native_cond_broadcast(rb_nativethread_cond_t *cond)
|
native_cond_broadcast(rb_nativethread_cond_t *cond)
|
||||||
{
|
{
|
||||||
|
@ -413,7 +414,7 @@ native_cond_broadcast(rb_nativethread_cond_t *cond)
|
||||||
e = next;
|
e = next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static int
|
static int
|
||||||
native_cond_timedwait_ms(rb_nativethread_cond_t *cond, rb_nativethread_lock_t *mutex, unsigned long msec)
|
native_cond_timedwait_ms(rb_nativethread_cond_t *cond, rb_nativethread_lock_t *mutex, unsigned long msec)
|
||||||
|
@ -452,6 +453,7 @@ native_cond_wait(rb_nativethread_cond_t *cond, rb_nativethread_lock_t *mutex)
|
||||||
return native_cond_timedwait_ms(cond, mutex, INFINITE);
|
return native_cond_timedwait_ms(cond, mutex, INFINITE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
static unsigned long
|
static unsigned long
|
||||||
abs_timespec_to_timeout_ms(const struct timespec *ts)
|
abs_timespec_to_timeout_ms(const struct timespec *ts)
|
||||||
{
|
{
|
||||||
|
@ -509,6 +511,7 @@ native_cond_timeout(rb_nativethread_cond_t *cond, struct timespec timeout_rel)
|
||||||
|
|
||||||
return timeout;
|
return timeout;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void
|
static void
|
||||||
native_cond_initialize(rb_nativethread_cond_t *cond, int flags)
|
native_cond_initialize(rb_nativethread_cond_t *cond, int flags)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue