libcamera/test
Laurent Pinchart 803e592cf6 test: object-invoke: Delete InvokeObject after thread termination
The InvokeObject instance is created on the stack in the run() method,
and is thus destroyed before the thread the object is bound to
terminates. This creates a race condition as the object message handler
could be running when the object is deleted. Fix this by moving the
InvokeObject to a member field.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
2019-11-27 19:31:21 +02:00
..
camera test: Extract CameraTest class out of camera tests to libtest 2019-11-20 21:47:20 +02:00
controls test: controls: control_list: Add status check 2019-11-25 09:54:41 +01:00
ipa test: ipa: Add IPA wrappers test 2019-11-20 21:48:06 +02:00
ipc test: Get event dispatcher from current thread 2019-08-19 19:06:37 +03:00
libtest test: Extract CameraTest class out of camera tests to libtest 2019-11-20 21:47:20 +02:00
log test: Get event dispatcher from current thread 2019-08-19 19:06:37 +03:00
media_device libcamera: Remove space between empty curly brackets 2019-11-18 02:27:48 +02:00
pipeline libcamera: Standardise on C compatibility headers 2019-10-23 17:39:39 +03:00
process test: process: Extend timeout duration 2019-09-13 09:21:40 +01:00
serialization test: Add control serialization test 2019-11-20 21:47:54 +02:00
stream test: Allow self-contained tests to run in parallel 2019-07-04 16:42:08 +02:00
v4l2_subdevice libcamera: Remove unneeded semicolons 2019-11-08 20:37:47 +02:00
v4l2_videodevice libcamera: Remove unneeded semicolons 2019-11-08 20:37:47 +02:00
byte-stream-buffer.cpp test: Add ByteStreamBuffer test 2019-11-20 21:47:50 +02:00
camera-sensor.cpp libcamera: utils: Add hex stream output helper 2019-10-15 16:49:55 +03:00
event-dispatcher.cpp libcamera: Switch to the std::chrono API 2019-09-14 15:05:45 +03:00
event-thread.cpp test: event-thread: Fix compilation on Chromium OS 2019-08-19 19:06:37 +03:00
event.cpp test: Get event dispatcher from current thread 2019-08-19 19:06:37 +03:00
geometry.cpp test: geometry: Add tests for Size class comparison operators 2019-04-18 18:13:10 +03:00
list-cameras.cpp libcamera: camera_manager: Construct CameraManager instances manually 2019-08-19 19:07:45 +03:00
meson.build test: Add control serialization test 2019-11-20 21:47:54 +02:00
message.cpp test: message: Add slow receiver test 2019-11-27 19:30:48 +02:00
object-invoke.cpp test: object-invoke: Delete InvokeObject after thread termination 2019-11-27 19:31:21 +02:00
object.cpp test: object: Extend object test to verify parent-child relationships 2019-08-17 18:47:17 +03:00
signal-threads.cpp test: Add test case for signal delivery across threads 2019-07-11 11:57:37 +03:00
signal.cpp test: signal: Extend Signal test with multi-inheritance reeiver 2019-07-11 16:38:18 +03:00
threads.cpp test: Add Thread test cases 2019-07-11 11:57:37 +03:00
timer-thread.cpp test: timer-thread: Test starting a timer from another thread 2019-10-07 06:02:24 +03:00
timer.cpp test: timer: Test start() with absolute deadline 2019-10-07 06:20:16 +03:00
utils.cpp libcamera: utils: Add hex stream output helper 2019-10-15 16:49:55 +03:00