summaryrefslogtreecommitdiff
path: root/src/py/libcamera/py_camera_manager.h
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>2022-08-19 14:16:15 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-08-19 15:44:28 +0300
commitbf3dbaece91e7f9be00923a225a62a918bf71f5b (patch)
treee22642e0d928e5827a781cea7d23743657b686b1 /src/py/libcamera/py_camera_manager.h
parentde7f1aa591881e112b67ec4f6507a6079b226089 (diff)
py: Switch to non-blocking eventfd
Blocking wait can be easily implemented on top in Python, so rather than supporting only blocking reads, or supporting both non-blocking and blocking reads, let's support only non-blocking reads. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/py/libcamera/py_camera_manager.h')
-rw-r--r--src/py/libcamera/py_camera_manager.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/py/libcamera/py_camera_manager.h b/src/py/libcamera/py_camera_manager.h
index 56bea13d..3525057d 100644
--- a/src/py/libcamera/py_camera_manager.h
+++ b/src/py/libcamera/py_camera_manager.h
@@ -39,7 +39,7 @@ private:
LIBCAMERA_TSA_GUARDED_BY(completedRequestsMutex_);
void writeFd();
- void readFd();
+ int readFd();
void pushRequest(Request *req);
std::vector<Request *> getCompletedRequests();
};