38 #ifndef CORELIB_DATAOBJECT_LOCKED_HPP 39 #define CORELIB_DATAOBJECT_LOCKED_HPP 42 #include "../os/MutexLock.hpp" 73 : data(initial_value) {}
82 virtual DataType
Get()
const { DataType cache;
Get(cache);
return cache; }
T DataType
The type of the data.
virtual void Set(const DataType &push)
Set the data to a certain value.
virtual void data_sample(const DataType &sample)
Provides a data sample to initialize this data object.
A DataObjectInterface implements multi-threaded read/write solutions.
A class which provides locked/protected access to one typed element of data.
virtual void Get(DataType &pull) const
Get a copy of the Data of this data object.
An object oriented wrapper around a non recursive mutex.
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
virtual DataType Get() const
Get a copy of the data of this data object.
DataObjectLocked(const T &initial_value=T())
Construct a DataObjectLocked by name.
MutexLock is a scope based Monitor, protecting critical sections with a Mutex object through locking ...