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>
This commit is contained in:
Laurent Pinchart
2019-08-12 00:06:48 +03:00
parent d5d7b71521
commit 5a954cb8b5
4 changed files with 17 additions and 0 deletions
+1
View File
@@ -23,6 +23,7 @@ public:
enum Type {
None = 0,
InvokeMessage = 1,
ThreadMoveMessage = 2,
UserMessage = 1000,
};