logo       
Google Custom Search
    AddThis Social Bookmark Button

r10331 - trunk/src/d2c/runtime/dylan: msg#00030

Subject: r10331 - trunk/src/d2c/runtime/dylan
Author: housel
Date: Thu Nov  3 04:56:27 2005
New Revision: 10331

Modified:
   trunk/src/d2c/runtime/dylan/thread-single.dylan
Log:
Bug: 12 7271
Don't call sched_yield() directly without a portability wrapper and
appropriate declarations.  In fact, don't call it at all in the
single-threaded version of the Dylan runtime.


Modified: trunk/src/d2c/runtime/dylan/thread-single.dylan
==============================================================================
--- trunk/src/d2c/runtime/dylan/thread-single.dylan     (original)
+++ trunk/src/d2c/runtime/dylan/thread-single.dylan     Thu Nov  3 04:56:27 2005
@@ -78,11 +78,8 @@
   error("Cannot join threads in a single-threaded dylan.");
 end function;
 
-define function thread-yield()
- => ();
-  // sched_yield() can, says the manpage, actually
-  // fail to yield. but we dont care.
-  call-out("sched_yield", int:);
+define function thread-yield() => ();
+  signal("thread-yield isn't really implemented");
 end function;
 
 define sealed domain make (singleton(<thread>));
-- 
Gd-chatter mailing list
Gd-chatter@xxxxxxxxxxxxxxxx
https://gauss.gwydiondylan.org/mailman/listinfo/gd-chatter




Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>