6 #include <knowrob/queries/TokenBroadcaster.h>
7 #include "knowrob/Logger.h"
8 #include "knowrob/integration/python/utils.h"
24 std::lock_guard<std::mutex> lock(
mtx_);
29 std::lock_guard<std::mutex> lock(
mtx_);
44 std::lock_guard<std::mutex> lock(
mtx_);
51 void operator>>(
const std::shared_ptr<TokenBroadcaster> &a,
52 const std::shared_ptr<TokenStream> &b) {
61 class_<TokenBroadcaster, std::shared_ptr<TokenBroadcaster>, bases<TokenStream>, boost::noncopyable>
62 (
"TokenBroadcaster", init<>())
void removeSubscriber(const std::shared_ptr< Channel > &subscriber)
virtual void pushToBroadcast(const TokenPtr &tok)
std::list< std::shared_ptr< Channel > > subscribers_
~TokenBroadcaster() override
void addSubscriber(const std::shared_ptr< Channel > &subscriber)
void push(const TokenPtr &tok) override
static std::shared_ptr< Channel > create(const std::shared_ptr< TokenStream > &stream)
void createType< TokenBroadcaster >()
std::shared_ptr< const Token > TokenPtr
void operator>>(const std::shared_ptr< TokenBroadcaster > &a, const std::shared_ptr< TokenStream > &b)