void TransportPublisherLink::handleMessage(const SerializedMessage& m, bool ser, bool nocopy) { stats_.bytes_received_ += m.num_bytes; stats_.messages_received_++; SubscriptionPtr parent = parent_.lock(); if (parent) { stats_.drops_ += parent->handleMessage(m, ser, nocopy, getConnection()->getHeader().getValues(), shared_from_this()); } }
void IntraProcessPublisherLink::handleMessage(const SerializedMessage& m, bool ser, bool nocopy) { boost::recursive_mutex::scoped_lock lock(drop_mutex_); if (dropped_) { return; } stats_.bytes_received_ += m.num_bytes; stats_.messages_received_++; SubscriptionPtr parent = parent_.lock(); if (parent) { stats_.drops_ += parent->handleMessage(m, ser, nocopy, header_.getValues(), shared_from_this()); } }