Defines
base/ThreadedLoopMacros.hpp File Reference
#include <QtGlobal>
#include <QtConcurrent>
#include <QtConcurrentRun>
#include <QFutureSynchronizer>
#include <openfluid/base/LoopMacros.hpp>

Go to the source code of this file.

Defines

#define _THREADSYNCID(_id)   _M_##_id##_Sync
#define _APPLY_UNITS_ORDERED_LOOP_THREADED_WITHID(id, unitclass, funcptr,...)
#define APPLY_UNITS_ORDERED_LOOP_THREADED(unitclass, funcptr,...)   _APPLY_UNITS_ORDERED_LOOP_THREADED_WITHID(__LINE__,unitclass,funcptr,## __VA_ARGS__)
#define _APPLY_ALLUNITS_ORDERED_LOOP_THREADED_WITHID(id, funcptr,...)
#define APPLY_ALLUNITS_ORDERED_LOOP_THREADED(funcptr,...)   _APPLY_ALLUNITS_ORDERED_LOOP_THREADED_WITHID(__LINE__,funcptr,## __VA_ARGS__)

Define Documentation

#define _APPLY_ALLUNITS_ORDERED_LOOP_THREADED_WITHID (   id,
  funcptr,
  ... 
)
#define _APPLY_UNITS_ORDERED_LOOP_THREADED_WITHID (   id,
  unitclass,
  funcptr,
  ... 
)
#define _THREADSYNCID (   _id)    _M_##_id##_Sync
#define APPLY_ALLUNITS_ORDERED_LOOP_THREADED (   funcptr,
  ... 
)    _APPLY_ALLUNITS_ORDERED_LOOP_THREADED_WITHID(__LINE__,funcptr,## __VA_ARGS__)

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 (   unitclass,
  funcptr,
  ... 
)    _APPLY_UNITS_ORDERED_LOOP_THREADED_WITHID(__LINE__,unitclass,funcptr,## __VA_ARGS__)

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

Parameters:
[in]unitclassname of the unit class
[in]funcptrmember simulator name
[in]...extra parameters to pass to the member simulator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines