Message ID | 20231013074841.16972-7-naush@raspberrypi.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <libcamera-devel-bounces@lists.libcamera.org> 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 AD28FC32BA for <parsemail@patchwork.libcamera.org>; Fri, 13 Oct 2023 07:48:56 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 1C0E462997; Fri, 13 Oct 2023 09:48:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1697183336; bh=vyNP6GL/NvQu1qtuus8Vql2nWEyyu0RXUAt+aNcr38w=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=zcPKuR49wNU1f0IC5L6ztP7j7c+bPfTX20cD2OcfUaKY5eiuGuWDF7OHfpKwTx1MZ ZIjrzRA1Sb3L93XT/CD4CEsl1VKjojAjGLUM8QdF3A4NvmNaro7Pr055m9xRdGuohT PitlsQM0WxooWVL0W0BQJmek1BhkDMi7/XLE34EVMwOZViGLCQIsQWdZSXrD2KxIYb elXJpq6MxGg9GLZKqT+pM/BBloUbzb8hWAuN35VSITXjsuNQVVN6oP77ftn9AYYsAd lG21C0GD6SoOhM8lKY8+Tzc6wwqjsG+/I4DJ96u5bIbT+DdRNgPf7H09q3coTmSLjM /7uKQ7euPRSyQ== 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 BD66562987 for <libcamera-devel@lists.libcamera.org>; Fri, 13 Oct 2023 09:48:51 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="i4I5Y/Kw"; dkim-atps=neutral Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-4056ce55e7eso18579535e9.2 for <libcamera-devel@lists.libcamera.org>; Fri, 13 Oct 2023 00:48:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1697183331; x=1697788131; darn=lists.libcamera.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=kw7H4NyscZJrAD6u85gBoZ7kQ4HlC5GeOqW4krYVWeM=; b=i4I5Y/KwLeugpxDX/m5LGTt6hM6kE3SVingFLuG30ZaPpzleNiBR+gc+S5PrCA1nXz nc5RACbeoIqajGPCK93o9WV5iWRtFO1OkNQzFEktN3f6aWGP2YhqR03FQDCH8H/4eMRS 28/x+tCs2R1llEa+W5XJwpI3r9p973vtWjIWy7vYydDDIvk8jrNbRP8LAMB87bUiA/jY 1iW031TBSFub1vlfalBiyevym7/8cKO7iHiWz6e693tIdwhiOj3BEAQYcc9lGOHlVoHg hBUq8iHtwKsyglgTjFazW32r5GPsxxLdgLDBqkeEU9cOMdPzc21MvTcushH7WmTLO1wf YgUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697183331; x=1697788131; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kw7H4NyscZJrAD6u85gBoZ7kQ4HlC5GeOqW4krYVWeM=; b=JWRrQvuoq4NsmYvXl2tfnCAhJkZvm+Py/s5eXR6MiBGwIBGW99GW3ZFkjZiL6UFxjB I0T0m3x4yXZ3nxLY85ok8aSOjBzvq3usdFbtr+7aQAfpMz9KPHVPTevcQFkWicl5vTnC 8pWFbKr547AE8Q3RApwq/EKhfQMrgMCjscdhIoYwECW1gzmNZ0V1ZoQ5q8OK0Mxja2yg JMkfg0CdKQz0HV17NSeXoaVNSFoLxfxQsAoV78xqnvtCDEENbas++c6Ku8uXfmWcypU2 d3iLUXYnGwtu+xrVyAEGqwMSnSebzUBunGKoxjPU1iKKe59od5o5XFuKuFQGqKFeArkM S7Sw== X-Gm-Message-State: AOJu0Yz6D4MIx95Az7rQXdF3YuVfzUSe8y6kChQULh6mQuZtXBYoQhyB FTABFRjQGJMrKuNKCIOd3rGLYaIuhlSpe/nDiKx6aA== X-Google-Smtp-Source: AGHT+IGKuGXqdULmnz4qn8uHTL289Nu7moCWC3Q0RsU8NoCy3DhPDQxXZomfivId94qAFCEt/E0xOQ== X-Received: by 2002:a7b:cbd4:0:b0:3fb:b3aa:1c8a with SMTP id n20-20020a7bcbd4000000b003fbb3aa1c8amr23615576wmi.16.1697183331056; Fri, 13 Oct 2023 00:48:51 -0700 (PDT) Received: from localhost.localdomain ([93.93.133.154]) by smtp.gmail.com with ESMTPSA id m16-20020a7bca50000000b003fee6e170f9sm1791890wml.45.2023.10.13.00.48.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 00:48:50 -0700 (PDT) To: libcamera-devel@lists.libcamera.org Date: Fri, 13 Oct 2023 08:48:27 +0100 Message-Id: <20231013074841.16972-7-naush@raspberrypi.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231013074841.16972-1-naush@raspberrypi.com> References: <20231013074841.16972-1-naush@raspberrypi.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [libcamera-devel] [PATCH v2 06/20] ipa: rpi: Add try_lock() to RPiController::Metadata X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <libcamera-devel.lists.libcamera.org> List-Unsubscribe: <https://lists.libcamera.org/options/libcamera-devel>, <mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe> List-Archive: <https://lists.libcamera.org/pipermail/libcamera-devel/> List-Post: <mailto:libcamera-devel@lists.libcamera.org> List-Help: <mailto:libcamera-devel-request@lists.libcamera.org?subject=help> List-Subscribe: <https://lists.libcamera.org/listinfo/libcamera-devel>, <mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe> From: Naushir Patuck via libcamera-devel <libcamera-devel@lists.libcamera.org> Reply-To: Naushir Patuck <naush@raspberrypi.com> Cc: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" <libcamera-devel-bounces@lists.libcamera.org> |
Series |
|
Related |
show
|
diff --git a/src/ipa/rpi/controller/metadata.h b/src/ipa/rpi/controller/metadata.h index bf8a2393457a..a232dcb12456 100644 --- a/src/ipa/rpi/controller/metadata.h +++ b/src/ipa/rpi/controller/metadata.h @@ -116,6 +116,7 @@ public: * e.g. std::lock_guard<RPiController::Metadata> lock(metadata) */ void lock() LIBCAMERA_TSA_ACQUIRE() { mutex_.lock(); } + auto try_lock() LIBCAMERA_TSA_ACQUIRE() { return mutex_.try_lock(); } void unlock() LIBCAMERA_TSA_RELEASE() { mutex_.unlock(); } private: