diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-08-18 03:11:27 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-08-19 19:06:37 +0300 |
commit | fd0087b5d8608eb1dc1e1a3da5ddafd83d43fc79 (patch) | |
tree | ddaeac42ef501be42b40ab8cd40714cf107cfc0d /test/log | |
parent | 8c9deeb30fa6930019788b619ad9081d30c6a6e2 (diff) |
test: Get event dispatcher from current thread
For all tests that don't otherwise require access to the camera manager,
get the event dispatcher from the current thread instead of the camera
manager. This prepares for the removal of CameraManager::instance().
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'test/log')
-rw-r--r-- | test/log/log_process.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/log/log_process.cpp b/test/log/log_process.cpp index 36d25b27..2df4aa43 100644 --- a/test/log/log_process.cpp +++ b/test/log/log_process.cpp @@ -14,7 +14,6 @@ #include <unistd.h> #include <vector> -#include <libcamera/camera_manager.h> #include <libcamera/event_dispatcher.h> #include <libcamera/logging.h> #include <libcamera/timer.h> @@ -22,6 +21,7 @@ #include "log.h" #include "process.h" #include "test.h" +#include "thread.h" #include "utils.h" using namespace std; @@ -65,7 +65,7 @@ protected: int run() { - EventDispatcher *dispatcher = CameraManager::instance()->eventDispatcher(); + EventDispatcher *dispatcher = Thread::current()->eventDispatcher(); Timer timeout; int exitCode = 42; |