#include <utils.h>
Public Member Functions | |
ElementType | get (void) |
void | set (const ElementType &value) |
SetGet (const ElementType &value=ElementType()) | |
Protected Attributes | |
ElementType | m_value |
protected value More... | |
MutexType | m_value_mutex |
mutex to protect value More... | |
class SetGet implements setter and getter template functions for thread-protected set and get of a value.
Definition at line 73 of file test/emulator/include/sick_scan/utils.h.
|
inline |
Constructor with optional initialization of the value
Definition at line 78 of file test/emulator/include/sick_scan/utils.h.
|
inline |
Returns the value threadsafe
Definition at line 88 of file test/emulator/include/sick_scan/utils.h.
|
inline |
Sets the value threadsafe
Definition at line 81 of file test/emulator/include/sick_scan/utils.h.
|
protected |
protected value
member variables
Definition at line 97 of file test/emulator/include/sick_scan/utils.h.
|
protected |
mutex to protect value
Definition at line 98 of file test/emulator/include/sick_scan/utils.h.