22 #ifndef __M2ETIS_PUBSUB_MESSAGEBUFFER_H__
23 #define __M2ETIS_PUBSUB_MESSAGEBUFFER_H__
37 uint64_t
insert(
const boost::function<
void(
void)> & func) {
38 buffer_.insert(std::make_pair(counter, func));
43 assert(buffer_.find(
id) != buffer_.end());
44 boost::function<void(void)> p = buffer_[id];
47 assert(buffer_.find(
id) == buffer_.end());
55 std::map<uint64_t, boost::function<void(void)>> buffer_;
void deliver(uint64_t id, msgProcess proc)
uint64_t insert(const boost::function< void(void)> &func)