From patchwork Thu Feb 4 09:34:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Plowman X-Patchwork-Id: 11137 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 57CA6BD163 for ; Thu, 4 Feb 2021 09:35:10 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 2222D6142E; Thu, 4 Feb 2021 10:35:10 +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="mtaYI8Lh"; dkim-atps=neutral Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 3189A6141D for ; Thu, 4 Feb 2021 10:35:07 +0100 (CET) Received: by mail-wm1-x32f.google.com with SMTP id j11so2492894wmi.3 for ; Thu, 04 Feb 2021 01:35:07 -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=kLdoAI0DrQKDp9rJnYmfItefNZa1u0XSjvvtceMdilg=; b=mtaYI8Lhw2J5yWBvlyOv7WNb1YMyhKfkcMa73xshr+RgMez1YkEPB47WzXE4yihst9 b3N3JadL5bpl0AoewMj/1ay5J8aijQMgvm9fDz0NjQC1Il5M/PuxM1q2JVTPB3QSjMCO ajLyglZ8WO2uMEMp4moT06mE3QvUgwYETOpajnvwjtlFsaiu798THxcY5jXtKZZn0zTy MR8EEQwOJEiilaa5ZkrcCdPBAoe7m4b1GxnR82DRk1SjCU4P49k8xNJaPTVecC3SBTYb gtseqZWcCzzwNldOaBKLQglV1Ps3gqX9ANTrD9biNd10qdYU+m+yFARqFMgf9a9dBIMS /VsA== 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=kLdoAI0DrQKDp9rJnYmfItefNZa1u0XSjvvtceMdilg=; b=e56CtfVZMr7rO+rvPdbOwCnhGCu9rJMkI+qRRK57JTK6eBIsKsTJwrzod93AVLUknp R7l8T4w/DorH3rP6fTCC28n1uBk919ejeXE/V8+GPm9Uji74ZLD4LFyxFgwwh+ijDlmO mWcfWPDGTbNkRWobQlaWErMcF5TjJa6sd8uyH8Ei2pwIijxRQz0H8c5ZndUoFJqXjC1S Rucktr7BQxKTR1yVmSZd8ahN70XdYKGykNA7jgXePqmJhMNeldJUR2SQlJ/ScZUV75m3 iWZgT3zxDlYii0HTTIjSU6d3yqtlCWC0YXKEhN0TKUEmWcbRdAsGrAGSu/PZakJwqOj4 +VlQ== X-Gm-Message-State: AOAM5327HlP7Eiw2eubKUuPBQejXq//5BKAIFlxYQ/7E3Y//D8AtiQI3 Teopg5SnOP09sRuOboht4UwYULJUo8rGT2x3 X-Google-Smtp-Source: ABdhPJxS++qU2lTHWIzBEYgK01KXgUc/QdN79xH0HQTjYuGaMq/yEFdOPuuBobzqjbY/Go9Wv7LiJA== X-Received: by 2002:a1c:99d1:: with SMTP id b200mr6610206wme.37.1612431306701; Thu, 04 Feb 2021 01:35:06 -0800 (PST) Received: from pi4-davidp.lan (plowpeople3.plus.com. [80.229.223.72]) by smtp.gmail.com with ESMTPSA id g16sm5280580wmi.30.2021.02.04.01.35.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Feb 2021 01:35:06 -0800 (PST) From: David Plowman To: libcamera-devel@lists.libcamera.org Date: Thu, 4 Feb 2021 09:34:57 +0000 Message-Id: <20210204093457.6879-8-david.plowman@raspberrypi.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210204093457.6879-1-david.plowman@raspberrypi.com> References: <20210204093457.6879-1-david.plowman@raspberrypi.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 7/7] 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. With this commit, libatomic can finally be removed as a build dependency. Signed-off-by: David Plowman --- src/ipa/raspberrypi/controller/algorithm.hpp | 3 +-- src/ipa/raspberrypi/meson.build | 1 - 2 files changed, 1 insertion(+), 3 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 diff --git a/src/ipa/raspberrypi/meson.build b/src/ipa/raspberrypi/meson.build index 9445cd09..4cdd0434 100644 --- a/src/ipa/raspberrypi/meson.build +++ b/src/ipa/raspberrypi/meson.build @@ -5,7 +5,6 @@ ipa_name = 'ipa_rpi' rpi_ipa_deps = [ libcamera_dep, dependency('boost'), - libatomic, ] rpi_ipa_includes = [