ruby-changes:20129
From: kosaki <ko1@a...>
Date: Mon, 20 Jun 2011 21:32:47 +0900 (JST)
Subject: [ruby-changes:20129] kosaki:r32177 (trunk): * thread_pthread.c (thread_timer): rename timeout_10ms to
kosaki 2011-06-20 21:32:35 +0900 (Mon, 20 Jun 2011) New Revision: 32177 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32177 Log: * thread_pthread.c (thread_timer): rename timeout_10ms to time_quantum. it's no longer 10ms. Modified files: trunk/ChangeLog trunk/thread_pthread.c Index: ChangeLog =================================================================== --- ChangeLog (revision 32176) +++ ChangeLog (revision 32177) @@ -1,3 +1,8 @@ +Mon Jun 20 21:31:03 2011 KOSAKI Motohiro <kosaki.motohiro@g...> + + * thread_pthread.c (thread_timer): rename timeout_10ms to + time_quantum. it's no longer 10ms. + Mon Jun 20 18:46:02 2011 Hiroshi Nakamura <nahi@r...> * ext/openssl/ossl_cipher.c, ext/openssl/lib/openssl/cipher.rb: Index: thread_pthread.c =================================================================== --- thread_pthread.c (revision 32176) +++ thread_pthread.c (revision 32177) @@ -984,15 +984,15 @@ static void * thread_timer(void *dummy) { - struct timespec timeout_10ms; + struct timespec time_quantum; struct timespec timeout; - timeout_10ms.tv_sec = 0; - timeout_10ms.tv_nsec = TIME_QUANTUM_USEC * 1000; + time_quantum.tv_sec = 0; + time_quantum.tv_nsec = TIME_QUANTUM_USEC * 1000; native_mutex_lock(&timer_thread_lock); native_cond_broadcast(&timer_thread_cond); - timeout = native_cond_timeout(&timer_thread_cond, timeout_10ms); + timeout = native_cond_timeout(&timer_thread_cond, time_quantum); while (system_working > 0) { int err; @@ -1008,7 +1008,7 @@ else if (err == ETIMEDOUT) { ping_signal_thread_list(); timer_thread_function(dummy); - timeout = native_cond_timeout(&timer_thread_cond, timeout_10ms); + timeout = native_cond_timeout(&timer_thread_cond, time_quantum); } else rb_bug_errno("thread_timer/timedwait", err); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/