# PTW32_INCLUDE and PTW32_LIB respectively. You can specify these
# paths in site-config.jam, user-config.jam or in the environment.
# A new feature is provided to request a specific API:
-# <threadapi>win32 and <threadapi)pthread.
+# <threadapi>win32 and <threadapi>pthread.
#
# The naming of the resulting libraries is mostly the same for the
# variant native to the build platform, i.e.
#########################################################################
import os ;
-import feature ;
import indirect ;
import path ;
import configure ;
+import threadapi-feature ;
project boost/thread
: source-location ../src
<library>/boost/system//boost_system
;
-local rule default_threadapi ( )
-{
- local api = pthread ;
- if [ os.name ] = "NT" { api = win32 ; }
- return $(api) ;
-}
-
-feature.feature threadapi : pthread win32 : propagated ;
-feature.set-default threadapi : [ default_threadapi ] ;
-
exe has_atomic_flag_lockfree : ../build/has_atomic_flag_lockfree_test.cpp ;
rule tag ( name : type ? : property-set )
local api = [ $(property-set).get <threadapi> ] ;
# non native api gets additional tag
- if $(api) != [ default_threadapi ] {
+ if $(api) != [ threadapi-feature.get-default $(property-set) ] {
result = $(result)_$(api) ;
}
}