summaryrefslogtreecommitdiff
path: root/test/event.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/event.cpp')
-rw-r--r--test/event.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/event.cpp b/test/event.cpp
index 9bd87615..816060cc 100644
--- a/test/event.cpp
+++ b/test/event.cpp
@@ -9,12 +9,12 @@
#include <string.h>
#include <unistd.h>
-#include <libcamera/camera_manager.h>
#include <libcamera/event_dispatcher.h>
#include <libcamera/event_notifier.h>
#include <libcamera/timer.h>
#include "test.h"
+#include "thread.h"
using namespace std;
using namespace libcamera;
@@ -35,7 +35,7 @@ protected:
int run()
{
- EventDispatcher *dispatcher = CameraManager::instance()->eventDispatcher();
+ EventDispatcher *dispatcher = Thread::current()->eventDispatcher();
std::string data("H2G2");
Timer timeout;
ssize_t ret;