libcamera: object: Create parent-child relationships

Add a parent Object to Object instances, and track the parent-children
relationships. Children are bound to the same thread as their parent,
and moving an Object to a thread automatically moves all its children.

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 14:19:06 +03:00
parent 4d9f1a0efc
commit 2b25819ec0
4 changed files with 81 additions and 13 deletions
+2
View File
@@ -61,6 +61,8 @@ private:
friend class ThreadMain;
void moveObject(Object *object);
void moveObject(Object *object, ThreadData *currentData,
ThreadData *targetData);
std::thread thread_;
ThreadData *data_;