From 356ad3559a386865673aed7738c877206a73e390 Mon Sep 17 00:00:00 2001 From: Stefan Laner Date: Mon, 24 Feb 2014 09:57:40 +0100 Subject: Windows support, fixed attribute handling with inherited interfaces Change-Id: I8c0248d25f267333878166dbab790e4ffa353e54 --- src/CommonAPI/DBus/DBusConnection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/CommonAPI/DBus/DBusConnection.cpp') diff --git a/src/CommonAPI/DBus/DBusConnection.cpp b/src/CommonAPI/DBus/DBusConnection.cpp index 1d95989..8f0bd86 100644 --- a/src/CommonAPI/DBus/DBusConnection.cpp +++ b/src/CommonAPI/DBus/DBusConnection.cpp @@ -43,10 +43,11 @@ const DBusObjectPathVTable* DBusConnection::getDBusObjectPathVTable() { } + //std::bind used to start the dispatch thread holds one reference, and the selfReference //created within the thread is the second. If only those two remain, no one but the //dispatch thread references the connection, which therefore can be finished. -constexpr uint32_t ownUseCount = 2; +const uint32_t ownUseCount = 2; void DBusConnection::dispatch() { std::shared_ptr selfReference = this->shared_from_this(); -- cgit v1.2.1