summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-10-06 07:03:34 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-10-07 06:02:19 +0300
commit36c35345fa3ba4eb7c7652caae6eecb44ba37770 (patch)
treeedd85ce15e485267dbc65fa8c6a8f8b4cbf81ba6 /test
parente85f42110f411ec9c9b30d7f8f1a57c02e9cb01f (diff)
libcamera: timer: Don't reset deadline after time out
Users of the Timer class may benefit from retrieving the timer deadline after it times out. This is currently not possible as the deadline is reset to 0 when the timer times out or is stopped. Fix this by not resetting the deadline, and adding a new running_ field to the Timer class to implement isRunning(). Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions