[libcamera-devel] [PATCH 0/9] Timer fixes and enhancements

Laurent Pinchart laurent.pinchart at ideasonboard.com
Sun Oct 6 07:32:17 CEST 2019


Hello,

This series fixes several issues with the Timer class (in patches 2/9,
5/9 and 6/9), and extends the class with support for absolute deadlines
(patch 8/9) which should be useful for IPAs.

Please see individual patches for details.

Laurent Pinchart (9):
  libcamera: timer: Remove the interval() method
  libcamera: timer: Don't reset deadline after time out
  test: timer: Test that deadline() isn't reset upon time out
  test: timer: Test that a timer can be restarted before it expires
  libcamera: timer: Allow restarting a timer before expiration
  libcamera: timer: Forbid starting or stopping timer from another
    thread
  test: timer-thread: Test starting a timer from another thread
  libcamera: timer: Add start() method with absolute deadline
  test: timer: Test start() with absolute deadline

 include/libcamera/timer.h        |  6 +--
 src/libcamera/timer.cpp          | 73 +++++++++++++++++++++++---------
 src/qcam/qt_event_dispatcher.cpp |  7 ++-
 test/timer-thread.cpp            | 58 +++++++++++++++++++------
 test/timer.cpp                   | 54 +++++++++++++++++++----
 5 files changed, 153 insertions(+), 45 deletions(-)

-- 
Regards,

Laurent Pinchart



More information about the libcamera-devel mailing list