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
parentb8518a5d27505f3fce79971b2460cf24ef4fb76a (diff)
downloadswift-contrib-2c668110e024877eb3abd25fe43da6c59b814254.zip
swift-contrib-2c668110e024877eb3abd25fe43da6c59b814254.tar.bz2
Added MainBoostIOServiceThread.
-rw-r--r--Swiften/Network/MainBoostIOServiceThread.cpp12
-rw-r--r--Swiften/Network/MainBoostIOServiceThread.h10
-rw-r--r--Swiften/SConscript1
3 files changed, 23 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();
+ };
+}
diff --git a/Swiften/SConscript b/Swiften/SConscript
index 229310d..a9cc1c1 100644
--- a/Swiften/SConscript
+++ b/Swiften/SConscript
@@ -62,6 +62,7 @@ sources = [
"Network/BoostConnection.cpp",
"Network/BoostConnectionFactory.cpp",
"Network/BoostConnectionServer.cpp",
+ "Network/MainBoostIOServiceThread.cpp",
"Network/BoostIOServiceThread.cpp",
"Network/ConnectionFactory.cpp",
"Network/ConnectionServer.cpp",