Patch Detail
Show a patch.
GET /api/1.1/patches/12762/?format=api
{ "id": 12762, "url": "https://patchwork.libcamera.org/api/1.1/patches/12762/?format=api", "web_url": "https://patchwork.libcamera.org/patch/12762/", "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": "<20210701230741.14320-2-laurent.pinchart@ideasonboard.com>", "date": "2021-07-01T23:07:39", "name": "[libcamera-devel,1/3] base: thread: Document the postMessage() function as thread-safe", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "6a92eeef3f8906465c8ec6e8c25e485cd6c4d289", "submitter": { "id": 2, "url": "https://patchwork.libcamera.org/api/1.1/people/2/?format=api", "name": "Laurent Pinchart", "email": "laurent.pinchart@ideasonboard.com" }, "delegate": { "id": 14, "url": "https://patchwork.libcamera.org/api/1.1/users/14/?format=api", "username": "pinchartl", "first_name": "Laurent", "last_name": "Pinchart", "email": "laurent.pinchart@ideasonboard.com" }, "mbox": "https://patchwork.libcamera.org/patch/12762/mbox/", "series": [ { "id": 2198, "url": "https://patchwork.libcamera.org/api/1.1/series/2198/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=2198", "date": "2021-07-01T23:07:38", "name": "base: Fix crash with recursive messages dispatch", "version": 1, "mbox": "https://patchwork.libcamera.org/series/2198/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/12762/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/12762/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 D16C8C3223\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 1 Jul 2021 23:08:31 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id EA48C684F2;\n\tFri, 2 Jul 2021 01:08:30 +0200 (CEST)", "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 022F3684E3\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 2 Jul 2021 01:08:26 +0200 (CEST)", "from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 7002AA15;\n\tFri, 2 Jul 2021 01:08:25 +0200 (CEST)" ], "Authentication-Results": "lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"N+dQTRCG\"; dkim-atps=neutral", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1625180905;\n\tbh=HPotrqiJYhYzaqt76k73aSYoCoVjoc8I/E0b9rACjvA=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=N+dQTRCGWzir7wtlVyN0J+G7hLvWf8yXTCKs5oGbykoasw3gnWSnY6xiefOH+r6Ir\n\tJFKtnZfv13mNrVay6YVmfcfl/Cme+KCaJHGeP/MaDXMJkL+TUfy4yFOHcyIwKxAVRS\n\tmmB6e/2erujg6HrrtyPL2PKL1BAr2dR2iVfP8mf0=", "From": "Laurent Pinchart <laurent.pinchart@ideasonboard.com>", "To": "libcamera-devel@lists.libcamera.org", "Date": "Fri, 2 Jul 2021 02:07:39 +0300", "Message-Id": "<20210701230741.14320-2-laurent.pinchart@ideasonboard.com>", "X-Mailer": "git-send-email 2.31.1", "In-Reply-To": "<20210701230741.14320-1-laurent.pinchart@ideasonboard.com>", "References": "<20210701230741.14320-1-laurent.pinchart@ideasonboard.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[libcamera-devel] [PATCH 1/3] base: thread: Document the\n\tpostMessage() function as thread-safe", "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": "The Thread::postMessage() function is thread-safe, document it as such.\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n src/libcamera/base/thread.cpp | 2 ++\n 1 file changed, 2 insertions(+)", "diff": "diff --git a/src/libcamera/base/thread.cpp b/src/libcamera/base/thread.cpp\nindex c7c2d6b29d6a..7f79115222e8 100644\n--- a/src/libcamera/base/thread.cpp\n+++ b/src/libcamera/base/thread.cpp\n@@ -526,6 +526,8 @@ EventDispatcher *Thread::eventDispatcher()\n *\n * If the \\a receiver is not bound to this thread the behaviour is undefined.\n *\n+ * \\context This function is \\threadsafe.\n+ *\n * \\sa exec()\n */\n void Thread::postMessage(std::unique_ptr<Message> msg, Object *receiver)\n", "prefixes": [ "libcamera-devel", "1/3" ] }