Laurent Pinchart
cecfeed61e
libcamera: Switch to the std::chrono API
...
Replace the clock_gettime()-based API with durations expressed as
integers with the std::chrono API.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com >
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se >
2019-09-14 15:05:45 +03:00
Laurent Pinchart
fd0087b5d8
test: Get event dispatcher from current thread
...
For all tests that don't otherwise require access to the camera manager,
get the event dispatcher from the current thread instead of the camera
manager. This prepares for the removal of CameraManager::instance().
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com >
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org >
2019-08-19 19:06:37 +03:00
Laurent Pinchart
eb1ecc92ce
tests: event-dispatcher: Add processEvents() interruption test
...
Test that the EventDispatcher::interrupt() function correctly interrupts
the processEvents() function, both when called before processEvents()
and when called while it is running.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com >
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com >
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se >
2019-01-23 18:51:56 +02:00
Laurent Pinchart
83c73c39c5
tests: Test event dispatcher interruption by signal
...
Add a test to verify that the event dispatcher correctly restarts event
processing when interrupted by a signal. The test currently fails as
this feature isn't implemented.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com >
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com >
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se >
2019-01-23 18:51:56 +02:00