Revision: 55032
http://brlcad.svn.sourceforge.net/brlcad/?rev=55032&view=rev
Author: brlcad
Date: 2013-04-04 03:05:15 +0000 (Thu, 04 Apr 2013)
Log Message:
-----------
document the updates to bu_parallel() including the LIBBU_AFFINITY flag that
disables cpu affinity locking. remove the note about using registers on the
alliant. register keyword behavior might not be covered under posix with
threading, but the comment is still irrelevant to the API and this header.
Modified Paths:
--------------
brlcad/trunk/include/bu.h
Modified: brlcad/trunk/include/bu.h
===================================================================
--- brlcad/trunk/include/bu.h 2013-04-04 02:56:37 UTC (rev 55031)
+++ brlcad/trunk/include/bu.h 2013-04-04 03:05:15 UTC (rev 55032)
@@ -4054,16 +4054,16 @@
* by 'func' using a "self-dispatching" paradigm.
*
* 'func' is called with one parameter, its thread number. Threads
- * are given increasing numbers, starting with zero.
+ * are given increasing numbers, starting with zero. Processes may
+ * also call bu_parallel_id() to obtain their thread number.
*
+ * Threads created with bu_parallel() automatically set CPU affinity
+ * where available for improved performance. This behavior can be
+ * disabled at runtime by setting the LIBBU_AFFINITY environment
+ * variable to 0.
+ *
* This function will not return control until all invocations of the
* subroutine are finished.
- *
- * Don't use registers in this function (bu_parallel). At least on
- * the Alliant, register context is NOT preserved when exiting the
- * parallel mode, because the serial portion resumes on some arbitrary
- * processor, not necessarily the one that serial execution started
- * on. The registers are not shared.
*/
BU_EXPORT extern void bu_parallel(void (*func)(int ncpu, genptr_t arg), int
ncpu, genptr_t arg);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits