summaryrefslogtreecommitdiff
path: root/test/event-dispatcher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/event-dispatcher.cpp')
-rw-r--r--test/event-dispatcher.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/event-dispatcher.cpp b/test/event-dispatcher.cpp
index e8818dca..f243ec39 100644
--- a/test/event-dispatcher.cpp
+++ b/test/event-dispatcher.cpp
@@ -9,11 +9,11 @@
#include <signal.h>
#include <sys/time.h>
-#include <libcamera/camera_manager.h>
#include <libcamera/event_dispatcher.h>
#include <libcamera/timer.h>
#include "test.h"
+#include "thread.h"
using namespace std;
using namespace libcamera;
@@ -33,7 +33,7 @@ protected:
int init()
{
- dispatcher = CameraManager::instance()->eventDispatcher();
+ dispatcher = Thread::current()->eventDispatcher();
struct sigaction sa = {};
sa.sa_handler = &sigAlarmHandler;