Documentation for OpenFLUID 2.2.2
Loading...
Searching...
No Matches
ThreadedLoopMacros.hpp File Reference

Detailed Description

#include <functional>
#include <thread>
#include <vector>
#include <system_error>
#include <openfluid/ware/LoopMacros.hpp>
Include dependency graph for ThreadedLoopMacros.hpp:

Go to the source code of this file.

Macros

#define _THREADGROUPID(_id)
 
#define _THREADID(_id)
 
#define _RUN_UNIT_GROUP_THREADED(id, iter, end, unitptr, funcptr, cond, ...)
 
#define _APPLY_UNITS_ORDERED_LOOP_THREADED_WITHID(id, unitsclass, funcptr, ...)
 
#define APPLY_UNITS_ORDERED_LOOP_THREADED(unitsclass, funcptr, ...)
 
#define _APPLY_UNITS_UNORDERED_LOOP_THREADED_WITHID(id, unitsclass, funcptr, ...)
 
#define APPLY_UNITS_UNORDERED_LOOP_THREADED(unitsclass, funcptr, ...)
 
#define _APPLY_ALLUNITS_ORDERED_LOOP_THREADED_WITHID(id, funcptr, ...)
 
#define APPLY_ALLUNITS_ORDERED_LOOP_THREADED(funcptr, ...)
 
#define _APPLY_ALLUNITS_UNORDERED_LOOP_THREADED_WITHID(id, funcptr, ...)
 
#define APPLY_ALLUNITS_UNORDERED_LOOP_THREADED(funcptr, ...)
 

Macro Definition Documentation

◆ _APPLY_ALLUNITS_ORDERED_LOOP_THREADED_WITHID

#define _APPLY_ALLUNITS_ORDERED_LOOP_THREADED_WITHID (   id,
  funcptr,
  ... 
)

◆ _APPLY_ALLUNITS_UNORDERED_LOOP_THREADED_WITHID

#define _APPLY_ALLUNITS_UNORDERED_LOOP_THREADED_WITHID (   id,
  funcptr,
  ... 
)

◆ _APPLY_UNITS_ORDERED_LOOP_THREADED_WITHID

#define _APPLY_UNITS_ORDERED_LOOP_THREADED_WITHID (   id,
  unitsclass,
  funcptr,
  ... 
)

◆ _APPLY_UNITS_UNORDERED_LOOP_THREADED_WITHID

#define _APPLY_UNITS_UNORDERED_LOOP_THREADED_WITHID (   id,
  unitsclass,
  funcptr,
  ... 
)

◆ _RUN_UNIT_GROUP_THREADED

#define _RUN_UNIT_GROUP_THREADED (   id,
  iter,
  end,
  unitptr,
  funcptr,
  cond,
  ... 
)

◆ _THREADGROUPID

#define _THREADGROUPID (   _id)

◆ _THREADID

#define _THREADID (   _id)

◆ APPLY_ALLUNITS_ORDERED_LOOP_THREADED

#define APPLY_ALLUNITS_ORDERED_LOOP_THREADED (   funcptr,
  ... 
)

Macro for applying a threaded simulator to each unit of the domain, following their process order

Parameters
[in]funcptrmember simulator name
[in]...extra parameters to pass to the member simulator

◆ APPLY_ALLUNITS_UNORDERED_LOOP_THREADED

#define APPLY_ALLUNITS_UNORDERED_LOOP_THREADED (   funcptr,
  ... 
)

Macro for applying a threaded simulator to each unit of the domain, without considering process order

Parameters
[in]funcptrmember simulator name
[in]...extra parameters to pass to the member simulator

◆ APPLY_UNITS_ORDERED_LOOP_THREADED

#define APPLY_UNITS_ORDERED_LOOP_THREADED (   unitsclass,
  funcptr,
  ... 
)

Macro for applying a threaded simulator to each unit of a class, following their process order

Parameters
[in]unitsclassname of the units class
[in]funcptrmember simulator name
[in]...extra parameters to pass to the member simulator

◆ APPLY_UNITS_UNORDERED_LOOP_THREADED

#define APPLY_UNITS_UNORDERED_LOOP_THREADED (   unitsclass,
  funcptr,
  ... 
)

Macro for applying a threaded simulator to each unit of a class, without considering process order

Parameters
[in]unitsclassname of the units class
[in]funcptrmember simulator name
[in]...extra parameters to pass to the member simulator