From 2d299769941907cb55df955754f0ca6869c0b1ae Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Sun, 23 Dec 2007 12:55:43 +0000 Subject: activated online syncing --- syncQueue.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'syncQueue.cpp') diff --git a/syncQueue.cpp b/syncQueue.cpp index ba858ee..7d3c35f 100644 --- a/syncQueue.cpp +++ b/syncQueue.cpp @@ -31,7 +31,24 @@ #include "threadUtils.hpp" #include "datatypes.h" +#include +#include +#include + +#include +#include + + #include "syncQueue.h" +void SyncQueue::push(const SyncCommand & scom ) +{ + std::ostringstream sout; + boost::archive::text_oarchive oa(sout); + oa << scom; + + Lock lock(mutex_); + queue_.push(sout.str()); +} void SyncQueue::push(const std::string & str ) { -- cgit v1.2.3