ODIN
|
#include <blackboard.h>
Public Member Functions | |
RecoBlackBoard () | |
void | announce (const STD_string &label) |
void | post (const STD_string &label, const RecoData &data) |
bool | announced (const STD_string &label) const |
bool | inquire (const STD_string &label, RecoData &data, bool blocking) |
void | release_waiting_threads () |
Manages data transfer between functors
Definition at line 35 of file blackboard.h.
|
inline |
Constructs empty blackboard
Definition at line 42 of file blackboard.h.
|
inline |
Announces that data with identifier 'label' will become available during pipeline execution.
Definition at line 49 of file blackboard.h.
|
inline |
Returns true only if data with identifier 'label' will become available during pipeline execution.
Definition at line 59 of file blackboard.h.
bool RecoBlackBoard::inquire | ( | const STD_string & | label, |
RecoData & | data, | ||
bool | blocking | ||
) |
Returns 'data' with identifier 'label' for k-space coordinate set in 'data'. If 'blocking' is 'true', the function will return only if data becomes available. Returns 'true' if data is available, otherwise returns 'false' if data not yet available.
void RecoBlackBoard::post | ( | const STD_string & | label, |
const RecoData & | data | ||
) |
Posts 'data' with identifier 'label', it will be indexed according to the k-space coordinate in 'data'.
void RecoBlackBoard::release_waiting_threads | ( | ) |
Wake up all stopped threads, even if no data is available, e.g. in case of an error