summaryrefslogtreecommitdiff
path: root/thread_win32.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-12 06:31:02 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-12 06:31:02 (GMT)
commit1542ab670e84fa66918dc9425942fb074b8317be (patch)
treee140f289fac4728d88f9f0d66fa383c81867979a /thread_win32.c
parent6c3f1461cd8052486f8e124f8f899447f653505b (diff)
unused functions
* thread_win32.c: native_cond_signal, native_cond_wait, native_cond_initialize, native_cond_destroy are not used now. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_win32.c')
-rw-r--r--thread_win32.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/thread_win32.c b/thread_win32.c
index 0634b97..d5a7ff4 100644
--- a/thread_win32.c
+++ b/thread_win32.c
@@ -374,6 +374,7 @@ struct cond_event_entry {
HANDLE event;
};
+#if 0
static void
native_cond_signal(rb_nativethread_cond_t *cond)
{
@@ -393,7 +394,6 @@ native_cond_signal(rb_nativethread_cond_t *cond)
}
}
-#if 0
static void
native_cond_broadcast(rb_nativethread_cond_t *cond)
{
@@ -414,7 +414,6 @@ native_cond_broadcast(rb_nativethread_cond_t *cond)
e = next;
}
}
-#endif
static int
native_cond_timedwait_ms(rb_nativethread_cond_t *cond, rb_nativethread_lock_t *mutex, unsigned long msec)
@@ -453,7 +452,6 @@ native_cond_wait(rb_nativethread_cond_t *cond, rb_nativethread_lock_t *mutex)
return native_cond_timedwait_ms(cond, mutex, INFINITE);
}
-#if 0
static unsigned long
abs_timespec_to_timeout_ms(const struct timespec *ts)
{
@@ -511,7 +509,6 @@ native_cond_timeout(rb_nativethread_cond_t *cond, struct timespec timeout_rel)
return timeout;
}
-#endif
static void
native_cond_initialize(rb_nativethread_cond_t *cond, int flags)
@@ -525,6 +522,7 @@ native_cond_destroy(rb_nativethread_cond_t *cond)
{
/* */
}
+#endif
void
ruby_init_stack(volatile VALUE *addr)