[Xorp-cvs] SF.net SVN: xorp:[11687] trunk/xorp/SConstruct

bms_fbsd at users.sourceforge.net bms_fbsd at users.sourceforge.net
Tue Dec 15 05:41:53 PST 2009


Revision: 11687
          http://xorp.svn.sourceforge.net/xorp/?rev=11687&view=rev
Author:   bms_fbsd
Date:     2009-12-15 13:41:53 +0000 (Tue, 15 Dec 2009)

Log Message:
-----------
Forcibly disable Boost's thread support; the XORP code base is
not yet threaded.

This is mostly to mitigate the performance effects of introducing
smart_ptr/weak_ptr. It will try to use arch-dependent atomic
instructions in sp_counted_base where possible; it falls back to
spinlocks if the inline assembly is not available.

Modified Paths:
--------------
    trunk/xorp/SConstruct

Modified: trunk/xorp/SConstruct
===================================================================
--- trunk/xorp/SConstruct	2009-12-11 10:18:38 UTC (rev 11686)
+++ trunk/xorp/SConstruct	2009-12-15 13:41:53 UTC (rev 11687)
@@ -529,6 +529,12 @@
     ( '_FORTIFY_SOURCE', 0 ),
     ])
 
+# Forcibly disable Boost's thread support; the XORP code base is
+# not yet threaded.
+env.AppendUnique(CPPDEFINES = [
+    ( 'BOOST_DISABLE_THREADS' ),
+    ])
+
 # NOTE: gcc specific flags.
 env.AppendUnique(CFLAGS = [
     '-Werror',


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Xorp-cvs mailing list