summaryrefslogtreecommitdiff
path: root/src/syncQueue.h
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2008-11-17 22:42:31 +0000
committerOthmar Gsenger <otti@anytun.org>2008-11-17 22:42:31 +0000
commit6b560cd6d1d2159a7cbd5be06ae5309704627f06 (patch)
treec5d516dbd7e6f41b6aab160f69fbe6ff8e225af0 /src/syncQueue.h
parentremoved outdated plain_tool code (diff)
fixed sync support
Diffstat (limited to 'src/syncQueue.h')
-rw-r--r--src/syncQueue.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/syncQueue.h b/src/syncQueue.h
index 23d1236..f076b4a 100644
--- a/src/syncQueue.h
+++ b/src/syncQueue.h
@@ -39,13 +39,15 @@
#include "threadUtils.hpp"
#include "datatypes.h"
+#include "syncServer.h"
class SyncQueue
{
public:
- SyncQueue() {};
+ SyncQueue():syncServer_(NULL) {};
~SyncQueue() {};
+ void setSyncServerPtr(SyncServer *);
void push(const std::string & );
void push(const SyncCommand & );
std::string pop();
@@ -54,9 +56,8 @@ public:
private:
SyncQueue(const SyncQueue &s);
void operator=(const SyncQueue &s);
- typedef std::queue<std::string> StringQueue;
- StringQueue queue_;
Mutex mutex_;
+ SyncServer * syncServer_;
};
#endif