summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-08-12 00:06:48 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-08-17 18:32:30 +0300
commit5a954cb8b57ec1869958985f6557c38bb5503e5a (patch)
treee21d6b22f823f46b6e0544236697f7ca7eaf75a4 /include
parentd5d7b71521cb9ad72505d66346227688134b8576 (diff)
libcamera: object: Notify objects of thread move
Send a synchronous message to objects just before they get moved to a new thread. This allows the object to perform any required processing. EventNotifier and Timer objects will use this mechanism to move themselves to the new thread's event disaptcher. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/object.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libcamera/object.h b/include/libcamera/object.h
index 869200a5..e128c75e 100644
--- a/include/libcamera/object.h
+++ b/include/libcamera/object.h
@@ -52,6 +52,8 @@ private:
void invokeMethod(BoundMethodBase *method, void *pack);
+ void notifyThreadMove();
+
void connect(SignalBase *signal);
void disconnect(SignalBase *signal);