summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-08-14 08:14:03 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-08-16 22:13:24 (GMT)
commit2c668110e024877eb3abd25fe43da6c59b814254 (patch)
treecc54f8652e22a12f957d7cb35555ab3c24fe5f25 /Swiften/Network
parentb8518a5d27505f3fce79971b2460cf24ef4fb76a (diff)
downloadswift-contrib-2c668110e024877eb3abd25fe43da6c59b814254.zip
swift-contrib-2c668110e024877eb3abd25fe43da6c59b814254.tar.bz2
Added MainBoostIOServiceThread.
Diffstat (limited to 'Swiften/Network')
-rw-r--r--Swiften/Network/MainBoostIOServiceThread.cpp12
-rw-r--r--Swiften/Network/MainBoostIOServiceThread.h10
2 files changed, 22 insertions, 0 deletions
diff --git a/Swiften/Network/MainBoostIOServiceThread.cpp b/Swiften/Network/MainBoostIOServiceThread.cpp
new file mode 100644
index 0000000..672bb07
--- /dev/null
+++ b/Swiften/Network/MainBoostIOServiceThread.cpp
@@ -0,0 +1,12 @@
+#include "Swiften/Network/MainBoostIOServiceThread.h"
+
+#include "Swiften/Network/BoostIOServiceThread.h"
+
+namespace Swift {
+
+BoostIOServiceThread& MainBoostIOServiceThread::getInstance() {
+ static BoostIOServiceThread instance;
+ return instance;
+}
+
+}
diff --git a/Swiften/Network/MainBoostIOServiceThread.h b/Swiften/Network/MainBoostIOServiceThread.h
new file mode 100644
index 0000000..cca7c2e
--- /dev/null
+++ b/Swiften/Network/MainBoostIOServiceThread.h
@@ -0,0 +1,10 @@
+#pragma once
+
+namespace Swift {
+ class BoostIOServiceThread;
+
+ class MainBoostIOServiceThread {
+ public:
+ static BoostIOServiceThread& getInstance();
+ };
+}