{"id":15028,"url":"https://patchwork.libcamera.org/api/patches/15028/?format=json","web_url":"https://patchwork.libcamera.org/patch/15028/","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-7-hiroh@chromium.org>","date":"2021-12-03T19:55:38","name":"[libcamera-devel,6/7] ipa: raspberrypi: contrast: Apply clang thread annotation","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"8645acb6197d069a6508920d4afddb785b97c4c9","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/15028/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/15028/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/15028/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 4BE2DC3250\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri,  3 Dec 2021 19:55:59 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 0657A60839;\n\tFri,  3 Dec 2021 20:55:59 +0100 (CET)","from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com\n\t[IPv6:2607:f8b0:4864:20::42b])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 1697160725\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri,  3 Dec 2021 20:55:57 +0100 (CET)","by mail-pf1-x42b.google.com with SMTP id 8so3858958pfo.4\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 03 Dec 2021 11:55:57 -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.53\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tFri, 03 Dec 2021 11:55:54 -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=\"jrm5ii5u\"; 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=tJkhOA5WSO7+mLX2TViwx3P8ZdhCcSweweK0r5dpP3I=;\n\tb=jrm5ii5uTiyUDWsHa6DRnNvS/Mw3IFOEv0dlL0a6f74NtBWbsralbSlu4LyMX50W1t\n\tps4EQvPOzrfqEXDe3XHolQKG4AEZLzkoRdcm5HiyELgRrQUa3mIxQDxpJlFvXa6KqjL4\n\t6RHzRR+U5NzeKGur+KnwjzBdpp6vfX+XdexlI=","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=tJkhOA5WSO7+mLX2TViwx3P8ZdhCcSweweK0r5dpP3I=;\n\tb=YlsMsyksu5IUC6w5BRN6wznmwq0kFPBxzhRgMf2vWdN2Pb8IZSZR/SPseXXcuTh4kV\n\trQWw3uRJtEoHJtzOaaik76kMWSfXEuHT7J4I7b9qBt2fqiGCWyE6ApEFaW0xZDZIRf6R\n\tJ4DKtAn7EDzEeTiR3407rJgqEHa/At02RYdLnSRrSHcwDiS5c7nFJD46ai3S7mgEWvQy\n\tVmkv9qaRKP5QYPKT0ddQSVd/3pBJpypQBm8zBXWptUvTQp0lQ30Wf1khSsORmLFKnLhX\n\tHC3DOu91ttgRRooxpjEZMU5p3P8dIQIWpbYc7TkfOMyeIp3bsVUzMCkyC7QBcZ88RoaE\n\tD4Iw==","X-Gm-Message-State":"AOAM530UWrVBOFrpif/PVRrWUjswBhIs64CAKRQbuNPfcMPT5mCkxzTW\n\t4XeuCMORXjYjY58xt4Vha1axdSgDPbQYyA==","X-Google-Smtp-Source":"ABdhPJz0sYYMASG6BAjp8cKw7v5oyaRNtxYrGTar0hW9+40bhp9rlyKI6Afb2+6eVdnbS7/IhDAfbQ==","X-Received":"by 2002:a05:6a00:13a4:b0:49f:add2:3c83 with SMTP id\n\tt36-20020a056a0013a400b0049fadd23c83mr20683226pfg.28.1638561355283; \n\tFri, 03 Dec 2021 11:55:55 -0800 (PST)","From":"Hirokazu Honda <hiroh@chromium.org>","To":"libcamera-devel@lists.libcamera.org","Date":"Sat,  4 Dec 2021 04:55:38 +0900","Message-Id":"<20211203195539.1574621-7-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 6/7] ipa: raspberrypi: contrast: Apply\n\tclang thread 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 Contrast by clang thread\nsafety annotations.\n\nSigned-off-by: Hirokazu Honda <hiroh@chromium.org>\n---\n src/ipa/raspberrypi/controller/rpi/contrast.hpp | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)","diff":"diff --git a/src/ipa/raspberrypi/controller/rpi/contrast.hpp b/src/ipa/raspberrypi/controller/rpi/contrast.hpp\nindex b74e06ab..7eb675ff 100644\n--- a/src/ipa/raspberrypi/controller/rpi/contrast.hpp\n+++ b/src/ipa/raspberrypi/controller/rpi/contrast.hpp\n@@ -43,7 +43,7 @@ private:\n \tContrastConfig config_;\n \tdouble brightness_;\n \tdouble contrast_;\n-\tContrastStatus status_;\n+\tContrastStatus status_ LIBCAMERA_TSA_GUARDED_BY(mutex_);\n \tlibcamera::Mutex mutex_;\n };\n \n","prefixes":["libcamera-devel","6/7"]}