ruby-changes:6470
From: nobu <ko1@a...>
Date: Thu, 10 Jul 2008 12:44:43 +0900 (JST)
Subject: [ruby-changes:6470] Ruby:r17986 (trunk): * thread.c (rb_thread_wait_for): fixed variable name.
nobu 2008-07-10 12:42:02 +0900 (Thu, 10 Jul 2008) New Revision: 17986 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=17986 Log: * thread.c (rb_thread_wait_for): fixed variable name. Modified files: trunk/ChangeLog trunk/thread.c Index: ChangeLog =================================================================== --- ChangeLog (revision 17985) +++ ChangeLog (revision 17986) @@ -1,3 +1,7 @@ +Thu Jul 10 12:41:56 2008 Nobuyoshi Nakada <nobu@r...> + + * thread.c (rb_thread_wait_for): fixed variable name. + Thu Jul 10 12:09:58 2008 Nobuyoshi Nakada <nobu@r...> * vm_core.h (rb_thread_t), vm.c (rb_thread_mark), process.c Index: thread.c =================================================================== --- thread.c (revision 17985) +++ thread.c (revision 17986) @@ -792,8 +792,8 @@ struct timeval to, tvn; getclockofday(&to); - to.tv_sec += tv.tv_sec; - if ((to.tv_usec += tv.tv_usec) >= 1000000) { + to.tv_sec += time.tv_sec; + if ((to.tv_usec += time.tv_usec) >= 1000000) { to.tv_sec++; to.tv_usec -= 1000000; } @@ -806,10 +806,10 @@ thread_debug("sleep_timeval: %ld.%.6ld > %ld.%.6ld\n", (long)to.tv_sec, to.tv_usec, (long)tvn.tv_sec, tvn.tv_usec); - tv.tv_sec = to.tv_sec - tvn.tv_sec; - if ((tv.tv_usec = to.tv_usec - tvn.tv_usec) < 0) { - --tv.tv_sec; - tv.tv_usec += 1000000; + time.tv_sec = to.tv_sec - tvn.tv_sec; + if ((time.tv_usec = to.tv_usec - tvn.tv_usec) < 0) { + --time.tv_sec; + time.tv_usec += 1000000; } } } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/