From 525b19c4101235385148ff9358b7b6e778a1f148 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sat, 23 Mar 2019 17:33:15 +0200 Subject: libcamera: Add thread support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The new Thread class wraps std::thread in order to integrate it with the Object, Signal and EventDispatcher classes. By default new threads run an internal event loop, and their run() method can be overloaded to provide a custom thread loop. Signed-off-by: Laurent Pinchart Reviewed-by: Niklas Söderlund --- src/libcamera/meson.build | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/libcamera/meson.build') diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build index adc749ec..bad60da4 100644 --- a/src/libcamera/meson.build +++ b/src/libcamera/meson.build @@ -23,6 +23,7 @@ libcamera_sources = files([ 'request.cpp', 'signal.cpp', 'stream.cpp', + 'thread.cpp', 'timer.cpp', 'utils.cpp', 'v4l2_controls.cpp', @@ -45,6 +46,7 @@ libcamera_headers = files([ 'include/media_device.h', 'include/media_object.h', 'include/pipeline_handler.h', + 'include/thread.h', 'include/utils.h', 'include/v4l2_device.h', 'include/v4l2_subdevice.h', @@ -91,6 +93,7 @@ libcamera_sources += version_cpp libcamera_deps = [ cc.find_library('dl'), libudev, + dependency('threads'), ] libcamera = shared_library('camera', -- cgit v1.2.1