Show a patch.

GET /api/1.1/patches/12004/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 12004,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/12004/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/12004/",
    "project": {
        "id": 1,
        "url": "https://patchwork.libcamera.org/api/1.1/projects/1/?format=api",
        "name": "libcamera",
        "link_name": "libcamera",
        "list_id": "libcamera_core",
        "list_email": "libcamera-devel@lists.libcamera.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<20210419133451.263733-4-naush@raspberrypi.com>",
    "date": "2021-04-19T13:34:49",
    "name": "[libcamera-devel,v5,3/5] ipa: raspberrypi: Add move/copy ctors and operators to Metadata class",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "a809860e1cca3a702145f281e8db1271eede49a5",
    "submitter": {
        "id": 34,
        "url": "https://patchwork.libcamera.org/api/1.1/people/34/?format=api",
        "name": "Naushir Patuck",
        "email": "naush@raspberrypi.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/12004/mbox/",
    "series": [
        {
            "id": 1950,
            "url": "https://patchwork.libcamera.org/api/1.1/series/1950/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=1950",
            "date": "2021-04-19T13:34:46",
            "name": "ipa: raspberrypi: Rate-limit the controller algorithms",
            "version": 5,
            "mbox": "https://patchwork.libcamera.org/series/1950/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/12004/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/12004/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 1A494BD814\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 19 Apr 2021 13:35:05 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 0D38968838;\n\tMon, 19 Apr 2021 15:35:04 +0200 (CEST)",
            "from mail-wr1-x430.google.com (mail-wr1-x430.google.com\n\t[IPv6:2a00:1450:4864:20::430])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 605D568831\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 19 Apr 2021 15:35:00 +0200 (CEST)",
            "by mail-wr1-x430.google.com with SMTP id e7so25105049wrs.11\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 19 Apr 2021 06:35:00 -0700 (PDT)",
            "from naush-laptop.pitowers.org\n\t([2a00:1098:3142:15:5363:8f56:4f84:754])\n\tby smtp.gmail.com with ESMTPSA id\n\tk11sm19952238wrx.88.2021.04.19.06.34.59\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tMon, 19 Apr 2021 06:34:59 -0700 (PDT)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=raspberrypi.com header.i=@raspberrypi.com\n\theader.b=\"twneBOGw\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=raspberrypi.com; s=google;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=uule6aP/GbUVKt6rRXc2oaEhZT9hc7570Iq0GDDxCU0=;\n\tb=twneBOGwzAW6ATxXHmLh5kVFuslumGQSPeQiZNUZUlAlluH3tIO80UXF+YXtKp1eBc\n\tyCat/cic8oUgc+Vih1CLVAFoxVAbLz4PCe8lLx7Azu16rp/7qVeAcj2KFnRPtK1+eAHv\n\texvjLCnTG2Qv8DfYavdhKVhKOmhZzEZZJImFJR1tcEw980mEU+JnFOB2rN9wGbL2fXZY\n\ta3elDZ6aYw7js55k/9bimiulsD6VXNOeAfjCndMSSHjgehCTkUtZF+k/z0QR0iPOe5+6\n\tEWUBCsBPPvZQM0XfKApMcEAxcXvYEU0zRQMJYlk2KBaU18mBIPs32ZFGAZyVdPSiWS6b\n\t0Law==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\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=uule6aP/GbUVKt6rRXc2oaEhZT9hc7570Iq0GDDxCU0=;\n\tb=DINRsNuKvbduT0uGvf+aQ1w23290fVkaJwW5CIWiVdQoGAJgK8kFh9Kua/GGuUZWsa\n\tJlmdzSlQpdWs1kZZLYa4Inx1lh3j5FR6chEOd1pIjqsNdU9dwwESwqRt+KY0JsoWWQDE\n\tkNNe8BhxicLzA1BVEtTgIc1DoexLkfUGbgsPDxML2jolpSQISss6hM/ugJ47xxxAPejo\n\tY7AH1WtvaOFRQybX2svvWl3QTsg75u7xIncYeNvLVQX1WB+ZZAsSHyRAgeXUX65yANZm\n\tZLPQZn3eBNOWdJF66LFjYCssg1aLsYLMUfBrjEpN1YgantLg5vUosAvpl2nxi8TUZuwZ\n\tdUig==",
        "X-Gm-Message-State": "AOAM532rG6/a4q8e+ZiK6nAdVnz/yMPZVspuL/CQTuYPLq+469PK2d4q\n\tLBVybXxLZWpAxXfX28ogSgHUkt/FrMXDOg==",
        "X-Google-Smtp-Source": "ABdhPJx1NoO+ncIMBrSHFR8zMHfq2NsCVthKEM7NodhWlvbE1Y4uFg4lV5t0IncBzm1MEiPva3EJZA==",
        "X-Received": "by 2002:adf:c587:: with SMTP id\n\tm7mr14286722wrg.369.1618839299867; \n\tMon, 19 Apr 2021 06:34:59 -0700 (PDT)",
        "From": "Naushir Patuck <naush@raspberrypi.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Mon, 19 Apr 2021 14:34:49 +0100",
        "Message-Id": "<20210419133451.263733-4-naush@raspberrypi.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20210419133451.263733-1-naush@raspberrypi.com>",
        "References": "<20210419133451.263733-1-naush@raspberrypi.com>",
        "MIME-Version": "1.0",
        "Subject": "[libcamera-devel] [PATCH v5 3/5] ipa: raspberrypi: Add move/copy\n\tctors and operators to Metadata class",
        "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>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "Add a default, move and copy constructor as well as a move operator\nimplementation RPiController::Metadata class.\n\nSigned-off-by: Naushir Patuck <naush@raspberrypi.com>\nReviewed-by: David Plowman <david.plowman@raspberrypi.com>\n---\n src/ipa/raspberrypi/controller/metadata.hpp | 24 +++++++++++++++++++++\n 1 file changed, 24 insertions(+)",
    "diff": "diff --git a/src/ipa/raspberrypi/controller/metadata.hpp b/src/ipa/raspberrypi/controller/metadata.hpp\nindex 07dd28ed9e0a..319f2320fc70 100644\n--- a/src/ipa/raspberrypi/controller/metadata.hpp\n+++ b/src/ipa/raspberrypi/controller/metadata.hpp\n@@ -19,6 +19,21 @@ namespace RPiController {\n class Metadata\n {\n public:\n+\tMetadata() = default;\n+\n+\tMetadata(Metadata const &other)\n+\t{\n+\t\tstd::lock_guard<std::mutex> other_lock(other.mutex_);\n+\t\tdata_ = other.data_;\n+\t}\n+\n+\tMetadata(Metadata &&other)\n+\t{\n+\t\tstd::lock_guard<std::mutex> other_lock(other.mutex_);\n+\t\tdata_ = std::move(other.data_);\n+\t\tother.data_.clear();\n+\t}\n+\n \ttemplate<typename T>\n \tvoid Set(std::string const &tag, T const &value)\n \t{\n@@ -51,6 +66,15 @@ public:\n \t\treturn *this;\n \t}\n \n+\tMetadata &operator=(Metadata &&other)\n+\t{\n+\t\tstd::lock_guard<std::mutex> lock(mutex_);\n+\t\tstd::lock_guard<std::mutex> other_lock(other.mutex_);\n+\t\tdata_ = std::move(other.data_);\n+\t\tother.data_.clear();\n+\t\treturn *this;\n+\t}\n+\n \ttemplate<typename T>\n \tT *GetLocked(std::string const &tag)\n \t{\n",
    "prefixes": [
        "libcamera-devel",
        "v5",
        "3/5"
    ]
}