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:
@@ -23,6 +23,7 @@ public:
|
||||
enum Type {
|
||||
None = 0,
|
||||
InvokeMessage = 1,
|
||||
ThreadMoveMessage = 2,
|
||||
UserMessage = 1000,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user