GrPPI  0.2
Generic and Reusable Parallel Pattern Interface
Public Member Functions | List of all members
grppi::sequential_execution Class Reference

Sequential execution policy. More...

#include <sequential_execution.h>

Public Member Functions

 sequential_execution ()
 Default constructor. More...
 
void set_concurrency_degree (int n) const noexcept
 Set number of grppi threads. More...
 
int concurrency_degree () const noexcept
 Get number of grppi trheads. More...
 
void enable_ordering () const noexcept
 Enable ordering. More...
 
void disable_ordering () const noexcept
 Disable ordering. More...
 
bool is_ordered () const noexcept
 Is execution ordered. More...
 

Detailed Description

Sequential execution policy.

Constructor & Destructor Documentation

grppi::sequential_execution::sequential_execution ( )
inline

Default constructor.

Member Function Documentation

int grppi::sequential_execution::concurrency_degree ( ) const
inlinenoexcept

Get number of grppi trheads.

Note
Getting concurrency degree is always 1 for sequential execution.
void grppi::sequential_execution::disable_ordering ( ) const
inlinenoexcept

Disable ordering.

Note
Disabling ordering of sequential execution is always ignored.
void grppi::sequential_execution::enable_ordering ( ) const
inlinenoexcept

Enable ordering.

Note
Enabling ordering of sequential execution is always ignored.
bool grppi::sequential_execution::is_ordered ( ) const
inlinenoexcept

Is execution ordered.

Note
Sequential execution is always ordered.
void grppi::sequential_execution::set_concurrency_degree ( int  n) const
inlinenoexcept

Set number of grppi threads.

Note
Setting concurrency degree is ignored for sequential execution.

The documentation for this class was generated from the following file: