24 #include <core/threading/thread_finalizer.h>
25 #include <plugins/gossip/aspect/gossip_inifin.h>
26 #include <plugins/gossip/gossip/gossip_group.h>
27 #include <plugins/gossip/gossip/gossip_group_manager.h>
53 if (gossip_thread == NULL) {
55 "GossipAspect, but RTTI says it "
61 gossip_group_mgr_->
join_group(gossip_thread->GossipAspect_group_name_);
71 if (gossip_thread == NULL) {
73 "GossipAspect, but RTTI says it "
87 gossip_group_mgr_ = gossip_group_mgr;
Aspect initializer/finalizer base class.
Thread cannot be finalized.
Thread cannot be initialized.
virtual void finalize(Thread *thread)
Finalize thread.
void set_manager(GossipGroupManager *gossip_group_mgr)
Set gossip group manger.
~GossipAspectIniFin()
Destructor.
GossipAspectIniFin()
Constructor.
virtual void init(Thread *thread)
Initialize thread.
Thread aspect to communicate with a group of robots.
RefPtr< GossipGroup > gossip_group
Gossip group to communicate with other robots.
Abstract class for a Gossip group manager.
virtual void leave_group(RefPtr< GossipGroup > &group)
Leave a gossip group.
virtual RefPtr< GossipGroup > join_group(const std::string &name)
Join a group.
RefPtr<> is a reference-counting shared smartpointer.
Thread class encapsulation of pthreads.
const char * name() const
Get name of thread.
Fawkes library namespace.