ruby-changes:46583
From: nobu <ko1@a...>
Date: Sat, 13 May 2017 10:16:41 +0900 (JST)
Subject: [ruby-changes:46583] nobu:r58699 (trunk): thread_win32.c: disable currently unused functions
nobu 2017-05-13 10:16:36 +0900 (Sat, 13 May 2017) New Revision: 58699 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58699 Log: thread_win32.c: disable currently unused functions Modified files: trunk/thread.c trunk/thread_win32.c Index: thread.c =================================================================== --- thread.c (revision 58698) +++ thread.c (revision 58699) @@ -543,6 +543,7 @@ thread_cleanup_func(void *th_ptr, int at https://github.com/ruby/ruby/blob/trunk/thread.c#L543 return; native_mutex_destroy(&th->interrupt_lock); + native_cond_destroy(&th->interrupt_cond); native_thread_destroy(th); } Index: thread_win32.c =================================================================== --- thread_win32.c (revision 58698) +++ thread_win32.c (revision 58699) @@ -393,6 +393,7 @@ native_cond_signal(rb_nativethread_cond_ https://github.com/ruby/ruby/blob/trunk/thread_win32.c#L393 } } +#if 0 static void native_cond_broadcast(rb_nativethread_cond_t *cond) { @@ -413,7 +414,7 @@ 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) @@ -452,6 +453,7 @@ native_cond_wait(rb_nativethread_cond_t https://github.com/ruby/ruby/blob/trunk/thread_win32.c#L453 return native_cond_timedwait_ms(cond, mutex, INFINITE); } +#if 0 static unsigned long abs_timespec_to_timeout_ms(const struct timespec *ts) { @@ -509,6 +511,7 @@ native_cond_timeout(rb_nativethread_cond https://github.com/ruby/ruby/blob/trunk/thread_win32.c#L511 return timeout; } +#endif static void native_cond_initialize(rb_nativethread_cond_t *cond, int flags) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/