Show a patch.

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

{
    "id": 2115,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/2115/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/2115/",
    "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": "<20191006054255.15655-1-laurent.pinchart@ideasonboard.com>",
    "date": "2019-10-06T05:42:55",
    "name": "[libcamera-devel,v1.1,9/9] test: timer: Test start() with absolute deadline",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "e68ff1dce51d9366a4365fffbca7fd7235887b24",
    "submitter": {
        "id": 2,
        "url": "https://patchwork.libcamera.org/api/1.1/people/2/?format=api",
        "name": "Laurent Pinchart",
        "email": "laurent.pinchart@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/2115/mbox/",
    "series": [
        {
            "id": 523,
            "url": "https://patchwork.libcamera.org/api/1.1/series/523/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=523",
            "date": "2019-10-06T05:42:55",
            "name": null,
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/523/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/2115/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/2115/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<laurent.pinchart@ideasonboard.com>",
        "Received": [
            "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id D2CB561565\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSun,  6 Oct 2019 07:43:01 +0200 (CEST)",
            "from pendragon.ideasonboard.com\n\t(modemcable151.96-160-184.mc.videotron.ca [184.160.96.151])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 0539BDD\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSun,  6 Oct 2019 07:43:00 +0200 (CEST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1570340581;\n\tbh=QYJDNAQiNNwZsS8ceNKSWRJymrJOjv+NUJEQgOjHaXc=;\n\th=From:To:Subject:Date:In-Reply-To:References:From;\n\tb=eW5EJR020t222g/yBW5pVUZ7C1wNI3cr6HVapseKdB/Erd12hP1yb3EEksnD+LLGa\n\tyyfNXPc0XJLIiaze3NA+ObUdp5jaWuJwqqiCF6HatLwJk7pBuK9rzCKbqIFLX80RFE\n\tiwV82X9bGdePljkGNSX74bOKidSRVJJmC6CTXKgc=",
        "From": "Laurent Pinchart <laurent.pinchart@ideasonboard.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Sun,  6 Oct 2019 08:42:55 +0300",
        "Message-Id": "<20191006054255.15655-1-laurent.pinchart@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.21.0",
        "In-Reply-To": "<20191006053226.8976-10-laurent.pinchart@ideasonboard.com>",
        "References": "<20191006053226.8976-10-laurent.pinchart@ideasonboard.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH v1.1 9/9] test: timer: Test start() with\n\tabsolute deadline",
        "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>",
        "X-List-Received-Date": "Sun, 06 Oct 2019 05:43:02 -0000"
    },
    "content": "Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n test/timer.cpp | 19 +++++++++++++++++++\n 1 file changed, 19 insertions(+)",
    "diff": "diff --git a/test/timer.cpp b/test/timer.cpp\nindex 5ff94dbbdeb0..63e5a1d24041 100644\n--- a/test/timer.cpp\n+++ b/test/timer.cpp\n@@ -35,6 +35,15 @@ public:\n \t\tTimer::start(msec);\n \t}\n \n+\tvoid start(std::chrono::steady_clock::time_point deadline)\n+\t{\n+\t\tcount_ = 0;\n+\t\tstart_ = std::chrono::steady_clock::now();\n+\t\texpiration_ = std::chrono::steady_clock::time_point();\n+\n+\t\tTimer::start(deadline);\n+\t}\n+\n \tint jitter()\n \t{\n \t\tstd::chrono::steady_clock::duration duration = expiration_ - deadline();\n@@ -127,6 +136,16 @@ protected:\n \t\t\treturn TestFail;\n \t\t}\n \n+\t\t/* Timer with absolute deadline. */\n+\t\ttimer.start(std::chrono::steady_clock::now() + std::chrono::milliseconds(200));\n+\n+\t\tdispatcher->processEvents();\n+\n+\t\tif (timer.hasFailed()) {\n+\t\t\tcout << \"Absolute timer test failed\" << endl;\n+\t\t\treturn TestFail;\n+\t\t}\n+\n \t\t/* Two timers. */\n \t\ttimer.start(1000);\n \t\ttimer2.start(300);\n",
    "prefixes": [
        "libcamera-devel",
        "v1.1",
        "9/9"
    ]
}