diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-08-14 08:14:03 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-08-16 22:13:24 (GMT) |
commit | 2c668110e024877eb3abd25fe43da6c59b814254 (patch) | |
tree | cc54f8652e22a12f957d7cb35555ab3c24fe5f25 /Swiften/Network | |
parent | b8518a5d27505f3fce79971b2460cf24ef4fb76a (diff) | |
download | swift-2c668110e024877eb3abd25fe43da6c59b814254.zip swift-2c668110e024877eb3abd25fe43da6c59b814254.tar.bz2 |
Added MainBoostIOServiceThread.
Diffstat (limited to 'Swiften/Network')
-rw-r--r-- | Swiften/Network/MainBoostIOServiceThread.cpp | 12 | ||||
-rw-r--r-- | Swiften/Network/MainBoostIOServiceThread.h | 10 |
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(); + }; +} |