[前][次][番号順一覧][スレッド一覧]

ruby-changes:19418

From: kosaki <ko1@a...>
Date: Sat, 7 May 2011 12:45:04 +0900 (JST)
Subject: [ruby-changes:19418] Ruby:r31458 (trunk): fix mutex deadlock test hang-up.

kosaki	2011-05-07 12:43:27 +0900 (Sat, 07 May 2011)

  New Revision: 31458

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31458

  Log:
    fix mutex deadlock test hang-up.
    
    * thread_win32.c (abs_timespec_to_timeout_ms): fix 1000x calculation
      mistake. (ie fix hang-up native_cond_timedwait())

  Modified files:
    trunk/ChangeLog
    trunk/thread_win32.c

Index: thread_win32.c
===================================================================
--- thread_win32.c	(revision 31457)
+++ thread_win32.c	(revision 31458)
@@ -471,7 +471,7 @@
 
     gettimeofday(&now, NULL);
     tv.tv_sec = ts->tv_sec;
-    tv.tv_usec = ts->tv_nsec;
+    tv.tv_usec = ts->tv_nsec / 1000;
 
     if (!rb_w32_time_subtract(&tv, &now))
 	return 0;
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 31457)
+++ ChangeLog	(revision 31458)
@@ -1,3 +1,9 @@
+Sat May  7 12:41:04 2011  KOSAKI Motohiro  <kosaki.motohiro@g...>
+	fix mutex deadlock test hang-up.
+
+	* thread_win32.c (abs_timespec_to_timeout_ms): fix 1000x calculation
+	  mistake. (ie fix hang-up native_cond_timedwait())
+
 Sat May  7 03:14:13 2011  KOSAKI Motohiro  <kosaki.motohiro@g...>
 
 	sleep_cond use monotonic time if possible.

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]