[libdispatch-changes] [68] trunk/src/queue.c
source_changes at macosforge.org
source_changes at macosforge.org
Wed Oct 28 04:23:00 PDT 2009
Revision: 68
http://trac.macosforge.org/projects/libdispatch/changeset/68
Author: robert at fledge.watson.org
Date: 2009-10-28 04:22:58 -0700 (Wed, 28 Oct 2009)
Log Message:
-----------
Rather than generate an error if there's no supported way to probe CPU
count, generate a warning, and set the CPU limit to 1.
Submitted by: Paolo Bonzini <bonzini at gnu.org>
Modified Paths:
--------------
trunk/src/queue.c
Modified: trunk/src/queue.c
===================================================================
--- trunk/src/queue.c 2009-10-28 11:05:31 UTC (rev 67)
+++ trunk/src/queue.c 2009-10-28 11:22:58 UTC (rev 68)
@@ -483,7 +483,10 @@
_dispatch_hw_config.cc_max_physical =
_dispatch_hw_config.cc_max_active;
#else
-#error "_dispatch_queue_set_width_init: no supported way to query CPU count"
+#warning "_dispatch_queue_set_width_init: no supported way to query CPU count"
+ _dispatch_hw_config.cc_max_logical =
+ _dispatch_hw_config.cc_max_physical =
+ _dispatch_hw_config.cc_max_active = 1;
#endif
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/libdispatch-changes/attachments/20091028/1858d3a6/attachment.html>
More information about the libdispatch-changes
mailing list