INTRODUCTION Overview Download and Install Documentation Publications REPOSITORY Libraries DEVELOPER Dev Guide Dashboard PEOPLE Contributors Users Project Download Mailing lists
|
gbxsickacfr::gbxiceutilacfr::Store< Type > Class Template ReferenceThread-safe storage for a single data objects. More...
Detailed Descriptiontemplate<class Type>
Thread-safe storage for a single data objects.
|
void gbxsickacfr::gbxiceutilacfr::Store< Type >::get | ( | Type & | obj | ) | const |
int gbxsickacfr::gbxiceutilacfr::Store< Type >::getNext | ( | Type & | obj, | |
int | timeoutMs = -1 | |||
) | const |
Waits until the next update and returns the new value. If the Store is empty, getNext blocks until the Store is set and returns the new value. By default, there is no timeout (negative value). Returns 0 if successful.
If timeout is set to a positive value (in milliseconds) and the wait times out, the function returns -1 and the object argument itself is not touched. In the rare event of spurious wakeup, the return value is 1.
bool gbxsickacfr::gbxiceutilacfr::Store< Type >::isEmpty | ( | ) | const |
void gbxsickacfr::gbxiceutilacfr::Store< Type >::purge | ( | ) |