|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r51177 - sandbox/interthreads/libs/interthreads/build
From: vicente.botet_at_[hidden]
Date: 2009-02-10 06:53:43
Author: viboes
Date: 2009-02-10 06:53:43 EST (Tue, 10 Feb 2009)
New Revision: 51177
URL: http://svn.boost.org/trac/boost/changeset/51177
Log:
interthreads version 0.4
* New free functions for all the AsynchronousCompletionToken operations, providing a higher degree of freedom.
* Missing have_all_values(), have_all_exception() and are_all_ready() functions on AsynchronousCompletionToken fusion tuples.
* get_all: getting all the values from a tuple of AsynchronousCompletionToken works now.
* fork_after overloaded for a single dependency
* wait_all overloaded for a single ACT.
* wait_for_all evaluate one of its elements on the current thread
* No need to use wait_and_get() on thread_specific_shared_ptr<> to synchronize with the decoration if the thread is created using a AsynchronousExecutor decorator. In this case the synchro is done before returning the AsynchronousCompletionToken. See the tutorial and the mono_thread_id example.
Text files modified:
sandbox/interthreads/libs/interthreads/build/Jamfile.v2 | 21 +++++++++++----------
1 files changed, 11 insertions(+), 10 deletions(-)
Modified: sandbox/interthreads/libs/interthreads/build/Jamfile.v2
==============================================================================
--- sandbox/interthreads/libs/interthreads/build/Jamfile.v2 (original)
+++ sandbox/interthreads/libs/interthreads/build/Jamfile.v2 2009-02-10 06:53:43 EST (Tue, 10 Feb 2009)
@@ -40,11 +40,12 @@
: source-location ../src
: requirements <threading>multi
<target-os>cygwin
- <threadapi>pthread
+ <interthreadapi>pthread
<variant>debug
# <define>BOOST_THREAD_HAS_THREAD_ATTR
<include>../../..
+ <include>../../../../../boost_1_38_0
<link>static:<define>BOOST_INTERTHREADS_BUILD_LIB=1
<link>shared:<define>BOOST_INTERTHREADS_BUILD_DLL=1
# <link>shared:<library>/boost/thread//boost_thread/<link>shared
@@ -54,15 +55,15 @@
: default-build <threading>multi
;
-local rule default_threadapi ( )
+local rule default_interthreadapi ( )
{
local api = pthread ;
if [ os.name ] = "NT" { api = win32 ; }
return $(api) ;
}
-#feature.feature threadapi : pthread win32 : propagated ;
-#feature.set-default threadapi : [ default_threadapi ] ;
+feature.feature interthreadapi : pthread win32 : propagated ;
+feature.set-default interthreadapi : [ default_interthreadapi ] ;
rule tag ( name : type ? : property-set )
{
@@ -70,10 +71,10 @@
if $(type) in STATIC_LIB SHARED_LIB IMPORT_LIB
{
- local api = [ $(property-set).get <threadapi> ] ;
+ local api = [ $(property-set).get <interthreadapi> ] ;
# non native api gets additional tag
- if $(api) != [ default_threadapi ] {
+ if $(api) != [ default_interthreadapi ] {
result = $(result)_$(api) ;
}
}
@@ -149,7 +150,7 @@
rule usage-requirements ( properties * )
{
local result ;
- if <threadapi>pthread in $(properties)
+ if <interthreadapi>pthread in $(properties)
{
result += <define>BOOST_THREAD_POSIX ;
if <target-os>windows in $(properties)
@@ -166,7 +167,7 @@
{
local result ;
- if <threadapi>pthread in $(properties)
+ if <interthreadapi>pthread in $(properties)
{
result += <define>BOOST_THREAD_POSIX ;
if <target-os>windows in $(properties)
@@ -188,13 +189,13 @@
alias interthreads_sources
: ## win32 sources ##
: ## requirements ##
- <threadapi>win32
+ <interthreadapi>win32
;
alias interthreads_sources
: ## pthread sources ##
: ## requirements ##
- <threadapi>pthread
+ <interthreadapi>pthread
;
explicit interthreads_sources ;
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk