Macros
ThreadedLoopMacros.hpp File Reference
#include <functional>
#include <QtGlobal>
#include <QtConcurrent>
#include <QtConcurrentRun>
#include <QFutureSynchronizer>
#include <openfluid/ware/LoopMacros.hpp>
Include dependency graph for ThreadedLoopMacros.hpp:

Go to the source code of this file.

Macros

#define _THREADSYNCID(_id)
 
#define _APPLY_UNITS_ORDERED_LOOP_THREADED_WITHID(id, unitsclass, funcptr, ...)
 
#define APPLY_UNITS_ORDERED_LOOP_THREADED(unitsclass, funcptr, ...)
 
#define _APPLY_ALLUNITS_ORDERED_LOOP_THREADED_WITHID(id, funcptr, ...)
 
#define APPLY_ALLUNITS_ORDERED_LOOP_THREADED(funcptr, ...)
 

Detailed Description

Author
Jean-Christophe FABRE jean-.nosp@m.chri.nosp@m.stoph.nosp@m.e.fa.nosp@m.bre@s.nosp@m.upag.nosp@m.ro.in.nosp@m.ra.f.nosp@m.r

Macro Definition Documentation

#define _APPLY_ALLUNITS_ORDERED_LOOP_THREADED_WITHID (   id,
  funcptr,
  ... 
)
#define _APPLY_UNITS_ORDERED_LOOP_THREADED_WITHID (   id,
  unitsclass,
  funcptr,
  ... 
)
#define _THREADSYNCID (   _id)
#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
#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