From 1fc63e4dbcf1438eb571d720f57be68852f820f7 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Thu, 16 Feb 2012 10:01:40 +0900 Subject: More logging infrastructure Signed-off-by: Martin Sustrik --- src/monitor.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/monitor.hpp') diff --git a/src/monitor.hpp b/src/monitor.hpp index 83ffb26..c8fa823 100644 --- a/src/monitor.hpp +++ b/src/monitor.hpp @@ -21,7 +21,10 @@ #ifndef __ZMQ_MONITOR_HPP_INCLUDED__ #define __ZMQ_MONITOR_HPP_INCLUDED__ +#include + #include "own.hpp" +#include "mutex.hpp" #include "io_object.hpp" namespace zmq @@ -53,6 +56,10 @@ namespace zmq // Events from the poller. void timer_event (int id_); + // Actual monitoring data to send and the related critical section. + std::string text; + mutex_t sync; + monitor_t (const monitor_t&); const monitor_t &operator = (const monitor_t&); }; -- cgit v1.2.3