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

ruby-changes:14407

From: usa <ko1@a...>
Date: Mon, 4 Jan 2010 09:31:09 +0900 (JST)
Subject: [ruby-changes:14407] Ruby:r26237 (trunk): * thread_win32.c (InterlockedExchangePointer): old SDK support.

usa	2010-01-04 09:30:52 +0900 (Mon, 04 Jan 2010)

  New Revision: 26237

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

  Log:
    * thread_win32.c (InterlockedExchangePointer): old SDK support.

  Modified files:
    trunk/ChangeLog
    trunk/thread_win32.c

Index: thread_win32.c
===================================================================
--- thread_win32.c	(revision 26236)
+++ thread_win32.c	(revision 26237)
@@ -446,6 +446,10 @@
     th->machine_stack_maxsize = size - space;
 }
 
+#ifndef InterlockedExchangePointer
+#define InterlockedExchangePointer(t, v) \
+    (void *)InterlockedExchange((long *)(t), (long)(v))
+#endif
 static void
 native_thread_destroy(rb_thread_t *th)
 {
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 26236)
+++ ChangeLog	(revision 26237)
@@ -1,3 +1,7 @@
+Mon Jan  4 09:30:25 2010  NAKAMURA Usaku  <usa@r...>
+
+	* thread_win32.c (InterlockedExchangePointer): old SDK support.
+
 Sun Jan  3 23:54:51 2010  Yuki Sonoda (Yugui)  <yugui@y...>
 
 	* trace.h: new file. wraps tracing mechanisms.

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

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