From patchwork Sun Oct 6 05:32:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 2105 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id F174161565 for ; Sun, 6 Oct 2019 07:32:33 +0200 (CEST) Received: from pendragon.ideasonboard.com (modemcable151.96-160-184.mc.videotron.ca [184.160.96.151]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 1BA11DD for ; Sun, 6 Oct 2019 07:32:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1570339953; bh=rwCDICpTOmrL8NPcAInggkEjJy+bJDvLeyCH6NFbAZ8=; h=From:To:Subject:Date:From; b=gVTB1Q7oGYBkZjmt4VRiBJQ44OwfNwv8NqlW1BMdX2xKeyseDWLpvs0i+mfrxvVMc /kTthZSgpaS9HYhX7IQo09htQXll342wlm1TQZSWbiWuxVqtlB0BNw9FnlVBVGS/k9 eOZ49E8gdUnBHNOHE2JJIQq4ZJC5xgkKOUq3bb/U= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Sun, 6 Oct 2019 08:32:17 +0300 Message-Id: <20191006053226.8976-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/9] Timer fixes and enhancements X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Oct 2019 05:32:34 -0000 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(-) Reviewed-by: Niklas Söderlund