diff options
Diffstat (limited to 'syncQueue.cpp')
-rw-r--r-- | syncQueue.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/syncQueue.cpp b/syncQueue.cpp index 7d3c35f..a24a4f5 100644 --- a/syncQueue.cpp +++ b/syncQueue.cpp @@ -47,7 +47,9 @@ void SyncQueue::push(const SyncCommand & scom ) oa << scom; Lock lock(mutex_); - queue_.push(sout.str()); + std::stringstream lengthout; + lengthout << std::setw(5) << std::setfill('0') << sout.str().size()<< ' '; + queue_.push(lengthout.str()+sout.str()); } void SyncQueue::push(const std::string & str ) |