|
ADS
Algorithms and Data Structures
|
the executors that also run long-lived workers: run( p , f ) runs \( f( 0 ) , \ldots , f( p - 1 ) \), at the same time on \( p \) distinct threads unless one returns before the others have begun, and returns when they have returned, and lock_type is a mutex of the executor with the semantics of the named requirement Lockable of the standard (lock(), unlock(), and try_lock(), which takes the lock only if it is free and never waits) More...
#include <ADS/parallel/Executor.h>
the executors that also run long-lived workers: run( p , f ) runs \( f( 0 ) , \ldots , f( p - 1 ) \), at the same time on \( p \) distinct threads unless one returns before the others have begun, and returns when they have returned, and lock_type is a mutex of the executor with the semantics of the named requirement Lockable of the standard (lock(), unlock(), and try_lock(), which takes the lock only if it is free and never waits)