summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-12-02 23:09:55 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-12-03 08:09:01 (GMT)
commite7e514d95e190a3a7d466740a4c3a1dfa9833ccc (patch)
treefd1d70642400f5237f631a08b6f4c1b727db8160 /Swiften/Network/PlatformDomainNameServiceQuery.h
parent5608da36a3a319070494d5a70ff984e7c172186e (diff)
downloadswift-e7e514d95e190a3a7d466740a4c3a1dfa9833ccc.zip
swift-e7e514d95e190a3a7d466740a4c3a1dfa9833ccc.tar.bz2
Do domain resolving in a separate thread.
Diffstat (limited to 'Swiften/Network/PlatformDomainNameServiceQuery.h')
-rw-r--r--Swiften/Network/PlatformDomainNameServiceQuery.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Swiften/Network/PlatformDomainNameServiceQuery.h b/Swiften/Network/PlatformDomainNameServiceQuery.h
index 58257af..1b1c1b5 100644
--- a/Swiften/Network/PlatformDomainNameServiceQuery.h
+++ b/Swiften/Network/PlatformDomainNameServiceQuery.h
@@ -1,5 +1,6 @@
#pragma once
+#include <boost/thread.hpp>
#include <boost/enable_shared_from_this.hpp>
#include "Swiften/Network/DomainNameServiceQuery.h"
@@ -10,13 +11,17 @@ namespace Swift {
class PlatformDomainNameServiceQuery : public DomainNameServiceQuery, public boost::enable_shared_from_this<PlatformDomainNameServiceQuery>, public EventOwner {
public:
PlatformDomainNameServiceQuery(const String& service);
+ ~PlatformDomainNameServiceQuery();
virtual void run();
private:
+ void doRun();
void emitError();
private:
+ boost::thread* thread;
+ bool safeToJoin;
String service;
};
}