mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
add new thread action enum and use it for QDBusConnectionPrivate::isServiceRegisteredByThread()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
5ee858f543
commit
966b2f97b6
2 changed files with 2 additions and 1 deletions
|
@ -2377,7 +2377,7 @@ bool QDBusConnectionPrivate::isServiceRegisteredByThread(const QString &serviceN
|
||||||
if (serviceName == dbusServiceString())
|
if (serviceName == dbusServiceString())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
QDBusReadLocker locker(UnregisterServiceAction, this);
|
QDBusReadLocker locker(ServiceRegisteredAction, this);
|
||||||
return serviceNames.contains(serviceName);
|
return serviceNames.contains(serviceName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -55,6 +55,7 @@ enum ThreadAction {
|
||||||
RegisterObjectAction = 2,
|
RegisterObjectAction = 2,
|
||||||
UnregisterObjectAction = 3,
|
UnregisterObjectAction = 3,
|
||||||
ObjectRegisteredAtAction = 4,
|
ObjectRegisteredAtAction = 4,
|
||||||
|
ServiceRegisteredAction = 5,
|
||||||
|
|
||||||
CloseConnectionAction = 10,
|
CloseConnectionAction = 10,
|
||||||
ObjectDestroyedAction = 11,
|
ObjectDestroyedAction = 11,
|
||||||
|
|
Loading…
Add table
Reference in a new issue