{"id":15026,"url":"https://patchwork.libcamera.org/api/patches/15026/?format=json","web_url":"https://patchwork.libcamera.org/patch/15026/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20211203195539.1574621-5-hiroh@chromium.org>","date":"2021-12-03T19:55:36","name":"[libcamera-devel,4/7] ipa: raspberrypi: lux: Apply clang thread annotation","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"c3797a967cd9513bf32f95756c0afc4ae4c2149a","submitter":{"id":63,"url":"https://patchwork.libcamera.org/api/people/63/?format=json","name":"Hirokazu Honda","email":"hiroh@chromium.org"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/15026/mbox/","series":[{"id":2814,"url":"https://patchwork.libcamera.org/api/series/2814/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=2814","date":"2021-12-03T19:55:32","name":"Apply clang thread safety annotations to raspberrypi","version":1,"mbox":"https://patchwork.libcamera.org/series/2814/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/15026/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/15026/checks/","tags":{},"headers":{"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\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id E1717C3251\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri,  3 Dec 2021 19:55:55 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 362BB60862;\n\tFri,  3 Dec 2021 20:55:55 +0100 (CET)","from mail-pl1-x629.google.com (mail-pl1-x629.google.com\n\t[IPv6:2607:f8b0:4864:20::629])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id BD2746084A\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri,  3 Dec 2021 20:55:53 +0100 (CET)","by mail-pl1-x629.google.com with SMTP id u17so2823095plg.9\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 03 Dec 2021 11:55:53 -0800 (PST)","from hiroh2.tok.corp.google.com\n\t([2401:fa00:8f:203:cd78:3a5f:d792:6177])\n\tby smtp.gmail.com with ESMTPSA id\n\tt3sm4265891pfj.207.2021.12.03.11.55.50\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tFri, 03 Dec 2021 11:55:51 -0800 (PST)"],"Authentication-Results":"lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=chromium.org header.i=@chromium.org\n\theader.b=\"dhGJ8cFa\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org;\n\ts=google; \n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=Lsc3g63mrM05MWhhAddTRLejLH9PImlNw/DUff7hN4s=;\n\tb=dhGJ8cFakBdzzgePQYtplyKCXK0kHbKUtgk7TwQ1BfmNLYmsRPbKHPVJ4nATOMOi4J\n\tat2yV8L6b/9oz1FM8DF7kEGcS1VZElmeciSKC8X4lhSGNN/IFjaKJ9M4Xr2Wj/MsZxDT\n\tYk/DbMJKqeGKrP+IA4IKwSdCwb85+qtARdEGw=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20210112;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references:mime-version:content-transfer-encoding;\n\tbh=Lsc3g63mrM05MWhhAddTRLejLH9PImlNw/DUff7hN4s=;\n\tb=SkhVU0N3PNgUGLDf0ca8sUYXSXwFgqo4OlKwTI//Vh2cGMr9LBQaMIbc51uhlyEFJl\n\tvTvuPQLy+6Z8hNDqn7Ob02CQkYibZQTJB1Cj7B5ykqPbm5QWGEsxguBn7+LoQ4U4ZQbG\n\tLOMd15RMIkjwHilXXko92eMEcWm39DqE3HPi/7BtPLzvo7WE71gSoCLutobLa8Nj0R2G\n\tK0VVJMKgurF53rZ63XU6sSmNFp5rla3uo9ASXTOUiPR+RP3G6/aNwicQr1iUF22D+653\n\tW2JCGNddhc4+LOAzsS/xJLtoHWFsr7CjAEp9MBlQRg3QaeOgCIn6fUSicSHGADvkGuno\n\tVnzA==","X-Gm-Message-State":"AOAM533T7EDmrVOyTnVBqiYBiBn6qIGVZ9LcrSyIwhFs3oBkIumI4SWZ\n\tHTxYS7yLTUffTWOBCjyvPAaJsKcplgkDFg==","X-Google-Smtp-Source":"ABdhPJwxJcQIXk4I98l+qRzxgxIyUbqwuIdAKLTZUAPLRi7dHYMNWO13DzNoFgzJuplgGbj8tRgbAg==","X-Received":"by 2002:a17:90b:2504:: with SMTP id\n\tns4mr16065464pjb.175.1638561352058; \n\tFri, 03 Dec 2021 11:55:52 -0800 (PST)","From":"Hirokazu Honda <hiroh@chromium.org>","To":"libcamera-devel@lists.libcamera.org","Date":"Sat,  4 Dec 2021 04:55:36 +0900","Message-Id":"<20211203195539.1574621-5-hiroh@chromium.org>","X-Mailer":"git-send-email 2.34.1.400.ga245620fadb-goog","In-Reply-To":"<20211203195539.1574621-1-hiroh@chromium.org>","References":"<20211203195539.1574621-1-hiroh@chromium.org>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH 4/7] ipa: raspberrypi: lux: Apply clang\n\tthread annotation","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>,\n\t<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>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"This annotates member variable of Lux by clang thread safety\nannotations.\n\nSigned-off-by: Hirokazu Honda <hiroh@chromium.org>\n---\n src/ipa/raspberrypi/controller/rpi/lux.hpp | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)","diff":"diff --git a/src/ipa/raspberrypi/controller/rpi/lux.hpp b/src/ipa/raspberrypi/controller/rpi/lux.hpp\nindex caa018da..04b82c4d 100644\n--- a/src/ipa/raspberrypi/controller/rpi/lux.hpp\n+++ b/src/ipa/raspberrypi/controller/rpi/lux.hpp\n@@ -35,7 +35,7 @@ private:\n \tdouble reference_Y_; // out of 65536\n \tdouble reference_lux_;\n \tdouble current_aperture_;\n-\tLuxStatus status_;\n+\tLuxStatus status_ LIBCAMERA_TSA_GUARDED_BY(mutex_);\n \tlibcamera::Mutex mutex_;\n };\n \n","prefixes":["libcamera-devel","4/7"]}