10 #ifndef __SOT_MAILBOX_HH 11 #define __SOT_MAILBOX_HH 15 #include <dynamic-graph/entity.h> 18 #include <boost/thread/mutex.hpp> 19 #include <boost/thread/thread.hpp> 20 #include <boost/thread/xtime.hpp> 36 template <
class Object>
42 template <
class Object>
46 virtual const std::string &
getClassName(
void)
const {
return CLASS_NAME; }
55 void post(
const Object &
obj);
56 sotTimestampedObject &
get(sotTimestampedObject &
res,
const int &
dummy);
58 Object &getObject(Object &res,
const int &time);
59 struct timeval &getTimestamp(
struct timeval &res,
const int &time);
61 bool hasBeenUpdated(
void);
66 struct timeval mainTimeStamp;
77 template <
class Object>
85 #endif // #ifndef __SOT_MAILBOX_HH
dynamicgraph::SignalTimeDependent< struct timeval, int > timeSOUT
virtual const std::string & getClassName(void) const
boost::timed_mutex mainObjectMutex
MailboxTimestampedObject< Object > sotTimestampedObject
dynamicgraph::SignalTimeDependent< Object, int > objSOUT
static const std::string CLASS_NAME
dynamicgraph::SignalTimeDependent< sotTimestampedObject, int > SOUT