#include <QtGlobal>
#include <QtConcurrent>
#include <QtConcurrentRun>
#include <QFutureSynchronizer>
#include <openfluid/base/LoopMacros.hpp>
Go to the source code of this file.
|
#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 _APPLY_ALLUNITS_ORDERED_LOOP_THREADED_WITHID |
( |
|
id, |
|
|
|
funcptr, |
|
|
|
... |
|
) |
| |
#define _APPLY_UNITS_ORDERED_LOOP_THREADED_WITHID |
( |
|
id, |
|
|
|
unitclass, |
|
|
|
funcptr, |
|
|
|
... |
|
) |
| |
#define _THREADSYNCID |
( |
|
_id | ) |
_M_##_id##_Sync |
Macro for applying a threaded simulator to each unit of the domain, following their process order
- Parameters
-
[in] | funcptr | member simulator name |
[in] | ... | extra parameters to pass to the member simulator |
Macro for applying a threaded simulator to each unit of a class, following their process order
- Parameters
-
[in] | unitclass | name of the unit class |
[in] | funcptr | member simulator name |
[in] | ... | extra parameters to pass to the member simulator |