diff options
author | Jacopo Mondi <jacopo@jmondi.org> | 2019-10-27 02:45:17 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-10-29 16:44:46 +0200 |
commit | fb1a5c0416ebd516a5ef01ba76deed1b602828ba (patch) | |
tree | 58a18ff78d6179a3deedb74750aca2214fce7d39 /src/libcamera/event_notifier.cpp | |
parent | 06008b9156b74885aa2382dec9dc8c7854ca6f2e (diff) |
libcamera: object: Add connection type parameter to invokeMethod()
Allow specifying a different connection type than ConnectionTypeQueued
for Object::invokeMethod().
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'src/libcamera/event_notifier.cpp')
-rw-r--r-- | src/libcamera/event_notifier.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcamera/event_notifier.cpp b/src/libcamera/event_notifier.cpp index 687969b0..4326b0b4 100644 --- a/src/libcamera/event_notifier.cpp +++ b/src/libcamera/event_notifier.cpp @@ -128,7 +128,8 @@ void EventNotifier::message(Message *msg) if (msg->type() == Message::ThreadMoveMessage) { if (enabled_) { setEnabled(false); - invokeMethod(&EventNotifier::setEnabled, true); + invokeMethod(&EventNotifier::setEnabled, + ConnectionTypeQueued, true); } } |