ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::WorkerExecutor Concept Reference

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>

Concept definition

template< class E >
concept WorkerExecutor =
Executor< E > && requires( E & e , std::size_t p ,
void ( &f )( std::size_t ) ,
typename E::lock_type & l )
{
e.run( p , f );
l.lock();
l.unlock();
{ l.try_lock() } -> std::convertible_to< bool >;
}
the executors, whose bulk( n , f ) runs on their threads and returns when they have returned,...
Definition Executor.h:168
the executors that also run long-lived workers: run( p , f ) runs , at the same time on distinct thr...
Definition Executor.h:183

Detailed description

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)