24 #include <co/object.h> 69 const uint32_t height = 0);
82 CO_API
virtual ~Barrier();
92 bool isGood()
const {
return isAttached(); }
94 CO_API
void setHeight(
const uint32_t height);
97 CO_API
void increase();
100 CO_API uint32_t getHeight()
const;
114 CO_API
bool enter(
const uint32_t timeout = LB_TIMEOUT_INDEFINITE);
120 void attach(
const uint128_t&
id,
const uint32_t instanceID)
override;
129 detail::Barrier*
const _impl;
131 void _cleanup(
const uint64_t time);
132 void _sendNotify(
const uint128_t& version,
NodePtr node);
136 bool _cmdEnterReply(
ICommand& command);
142 #endif // CO_BARRIER_H
lunchbox::RefPtr< LocalNode > LocalNodePtr
A reference pointer for LocalNode pointers.
A helper struct bundling an object identifier and version.
ChangeType
Object change handling characteristics, see Programming Guide.
A std::ostream-like interface for object serialization.
Object-oriented network library.
A class managing received commands.
A std::istream-like input data stream for binary data.
ChangeType getChangeType() const override
A networked, versioned barrier.
lunchbox::RefPtr< Node > NodePtr
A reference pointer for Node pointers.