From 4403a667892a49f1bba1ff3b6164ff1e1633ecdd Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sun, 18 Aug 2019 03:11:27 +0300 Subject: libcamera: proxy: Get event dispatcher from current thread 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 Reviewed-by: Jacopo Mondi --- src/libcamera/proxy/worker/ipa_proxy_linux_worker.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libcamera/proxy') diff --git a/src/libcamera/proxy/worker/ipa_proxy_linux_worker.cpp b/src/libcamera/proxy/worker/ipa_proxy_linux_worker.cpp index c43b088a..ffba3ae4 100644 --- a/src/libcamera/proxy/worker/ipa_proxy_linux_worker.cpp +++ b/src/libcamera/proxy/worker/ipa_proxy_linux_worker.cpp @@ -9,7 +9,6 @@ #include #include -#include #include #include #include @@ -17,6 +16,7 @@ #include "ipa_module.h" #include "ipc_unixsocket.h" #include "log.h" +#include "thread.h" #include "utils.h" using namespace libcamera; @@ -81,7 +81,7 @@ int main(int argc, char **argv) LOG(IPAProxyLinuxWorker, Debug) << "Proxy worker successfully started"; /* \todo upgrade listening loop */ - EventDispatcher *dispatcher = CameraManager::instance()->eventDispatcher(); + EventDispatcher *dispatcher = Thread::current()->eventDispatcher(); while (1) dispatcher->processEvents(); -- cgit v1.2.1