ruby-changes:46952
From: nobu <ko1@a...>
Date: Mon, 12 Jun 2017 15:31:08 +0900 (JST)
Subject: [ruby-changes:46952] nobu:r59067 (trunk): unused functions
nobu 2017-06-12 15:31:02 +0900 (Mon, 12 Jun 2017) New Revision: 59067 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59067 Log: unused functions * thread_win32.c: native_cond_signal, native_cond_wait, native_cond_initialize, native_cond_destroy are not used now. Modified files: trunk/thread_win32.c Index: thread_win32.c =================================================================== --- thread_win32.c (revision 59066) +++ thread_win32.c (revision 59067) @@ -374,6 +374,7 @@ struct cond_event_entry { https://github.com/ruby/ruby/blob/trunk/thread_win32.c#L374 HANDLE event; }; +#if 0 static void native_cond_signal(rb_nativethread_cond_t *cond) { @@ -393,7 +394,6 @@ native_cond_signal(rb_nativethread_cond_ https://github.com/ruby/ruby/blob/trunk/thread_win32.c#L394 } } -#if 0 static void native_cond_broadcast(rb_nativethread_cond_t *cond) { @@ -414,7 +414,6 @@ native_cond_broadcast(rb_nativethread_co https://github.com/ruby/ruby/blob/trunk/thread_win32.c#L414 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 https://github.com/ruby/ruby/blob/trunk/thread_win32.c#L452 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 https://github.com/ruby/ruby/blob/trunk/thread_win32.c#L509 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 https://github.com/ruby/ruby/blob/trunk/thread_win32.c#L522 { /* */ } +#endif void ruby_init_stack(volatile VALUE *addr) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/