From patchwork Mon Feb 8 09:40:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Plowman X-Patchwork-Id: 11184 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 309CCBD162 for ; Mon, 8 Feb 2021 09:40:46 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id F328060D17; Mon, 8 Feb 2021 10:40:45 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="X3vpCpRE"; dkim-atps=neutral Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 79E6D60CC3 for ; Mon, 8 Feb 2021 10:40:43 +0100 (CET) Received: by mail-wm1-x334.google.com with SMTP id m1so12621812wml.2 for ; Mon, 08 Feb 2021 01:40:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7R3Q8LT+xg7ciIO4DlfEJAoENK+poAjC0mayY7ox/zk=; b=X3vpCpREVwLIyLdh6WgfGbvTjiU1fZr78Zi+L0vhkHNU6r5jrkj344xamja4JjpN39 7P8Sx88ZSrB6+QlCvBFG2/uTOcyeQ0mHVnqh+IaIzE7ZXUiYQIKzz5oabgwopoO2gQpd kxPBbjxXZdiTWYtKIrfkC5LYCVdZt5rBfp5EPWqANb8d3iT/oyXUgoNTEq6jEndG5Lza ZpcuYUpV1X3CT8V4j7z6hVYyf2DuSWf2qkwK5WBPNK597qn+stcH9Qr772ZjfouEzUd8 iQpYUqHDCIA61O6wEqGFNnwg4hC6CbvH4dpkffR9NCE55Ss4ysIl6gSHY4pFTGFgY5Ov RTYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7R3Q8LT+xg7ciIO4DlfEJAoENK+poAjC0mayY7ox/zk=; b=bb6xxuNLAKw/S87bB/eio8FeCdIJwL2hi++iooXMhCGATgtPAIBVzzKZK51h8EX3VL +YmXlWXVndFV/CVByiF3hb8ZxAMuoqRsQ+BC3MBYYatJac8jr0Ww7MF4YBfpRm1AReSB OzckkHCpWDSfstu9X+P+FyNV0Exkj6T5MCeuw00G/IstQI774ar0Iy7g+D1rD7mFAl/y yTa53Sgy+vmrBtCP3f6Obxvm9pVZyU/JByi0KFS3HpqdA/9AUolmMvuPA9W+w3zQz5Po MbJ5aRV/BbZQzoEXhxAitb2AaajMwqNcOF7tmJMUc1EVu1lRjUjxZ/TGCe5t04c5FK9c TtEw== X-Gm-Message-State: AOAM533Amaor0mk821WKMid6mYOX3vwX/sT8ZcQ2Hqf6uTL9Lu+IPiw8 sBxUrpPLOdFKjn5/YV20fleW6k7hcn3PXRgR X-Google-Smtp-Source: ABdhPJyqdUdkAgvoAKl6yrv6gPi7ZtJoqpVwLcZuiaaKgHDaNs0f/eVBvXHYCNQ+2KKJDaQAr5u52w== X-Received: by 2002:a1c:a546:: with SMTP id o67mr13832482wme.151.1612777242835; Mon, 08 Feb 2021 01:40:42 -0800 (PST) Received: from pi4-davidp.lan (plowpeople3.plus.com. [80.229.223.72]) by smtp.gmail.com with ESMTPSA id c18sm43070920wmk.0.2021.02.08.01.40.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Feb 2021 01:40:42 -0800 (PST) From: David Plowman To: libcamera-devel@lists.libcamera.org Date: Mon, 8 Feb 2021 09:40:35 +0000 Message-Id: <20210208094036.6846-2-david.plowman@raspberrypi.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210208094036.6846-1-david.plowman@raspberrypi.com> References: <20210208094036.6846-1-david.plowman@raspberrypi.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 1/2] ipa: raspberrypi: Remove atomic variable from Algorithm class 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: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Pause() and Resume() are only called synchronously so paused_ does not need to be atomic. Signed-off-by: David Plowman Reviewed-by: Laurent Pinchart --- src/ipa/raspberrypi/controller/algorithm.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ipa/raspberrypi/controller/algorithm.hpp b/src/ipa/raspberrypi/controller/algorithm.hpp index e9b040c7..5123c87b 100644 --- a/src/ipa/raspberrypi/controller/algorithm.hpp +++ b/src/ipa/raspberrypi/controller/algorithm.hpp @@ -12,7 +12,6 @@ #include #include #include -#include #include "controller.hpp" @@ -46,7 +45,7 @@ public: private: Controller *controller_; - std::atomic paused_; + bool paused_; }; // This code is for automatic registration of Front End algorithms with the