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

ruby-changes:39234

From: nobu <ko1@a...>
Date: Tue, 21 Jul 2015 19:52:17 +0900 (JST)
Subject: [ruby-changes:39234] nobu:r51315 (trunk): cont.c: CreateFiberEx fallback

nobu	2015-07-21 19:52:09 +0900 (Tue, 21 Jul 2015)

  New Revision: 51315

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

  Log:
    cont.c: CreateFiberEx fallback
    
    * cont.c (fiber_initialize_machine_stack_context): fallback
      definition of CreateFiberEx for VC6.

  Modified files:
    trunk/cont.c
Index: cont.c
===================================================================
--- cont.c	(revision 51314)
+++ cont.c	(revision 51315)
@@ -659,6 +659,10 @@ fiber_initialize_machine_stack_context(r https://github.com/ruby/ruby/blob/trunk/cont.c#L659
     rb_thread_t *sth = &fib->cont.saved_thread;
 
 #ifdef _WIN32
+# if defined(_MSC_VER) && _MSC_VER <= 0x1200
+#   define CreateFiberEx(cs, stacksize, flags, entry, param) \
+    CreateFiber((stacksize), (entry), (param))
+# endif
     fib->fib_handle = CreateFiberEx(size - 1, size, 0, fiber_entry, NULL);
     if (!fib->fib_handle) {
 	/* try to release unnecessary fibers & retry to create */

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

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