summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-07-24 18:07:47 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-07-24 19:03:45 (GMT)
commit30f99a2bcbbeb41bfd61768b98c243ebcfdf67c7 (patch)
tree7cce7dd0fdd485b32fb0634e2b2abe51e98d29f6 /Swiften/LinkLocal/BonjourQuery.h
parentf6e73393afbe7ce8d1a5c5fc55565582cb8906cc (diff)
downloadswift-30f99a2bcbbeb41bfd61768b98c243ebcfdf67c7.zip
swift-30f99a2bcbbeb41bfd61768b98c243ebcfdf67c7.tar.bz2
Make BonjourQuerier thread-safe.
Diffstat (limited to 'Swiften/LinkLocal/BonjourQuery.h')
-rw-r--r--Swiften/LinkLocal/BonjourQuery.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Swiften/LinkLocal/BonjourQuery.h b/Swiften/LinkLocal/BonjourQuery.h
index 2a47f73..bdb91a4 100644
--- a/Swiften/LinkLocal/BonjourQuery.h
+++ b/Swiften/LinkLocal/BonjourQuery.h
@@ -5,10 +5,14 @@
#include <boost/enable_shared_from_this.hpp>
#include <boost/thread/mutex.hpp>
+#include "Swiften/EventLoop/EventOwner.h"
+
namespace Swift {
class BonjourQuerier;
- class BonjourQuery : public boost::enable_shared_from_this<BonjourQuery> {
+ class BonjourQuery :
+ public EventOwner,
+ public boost::enable_shared_from_this<BonjourQuery> {
public:
BonjourQuery(boost::shared_ptr<BonjourQuerier>);
virtual ~BonjourQuery();