Patch Detail
Show a patch.
GET /api/patches/24470/?format=api
{ "id": 24470, "url": "https://patchwork.libcamera.org/api/patches/24470/?format=api", "web_url": "https://patchwork.libcamera.org/patch/24470/", "project": { "id": 1, "url": "https://patchwork.libcamera.org/api/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": "<20250926110708.94112-2-barnabas.pocze@ideasonboard.com>", "date": "2025-09-26T11:07:07", "name": "[v3,1/2] libcamera: base: thread: Make `removeMessages()` public", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "ad513112133082aeaac1b2423ab2b3d3ac6498b9", "submitter": { "id": 216, "url": "https://patchwork.libcamera.org/api/people/216/?format=api", "name": "Barnabás Pőcze", "email": "barnabas.pocze@ideasonboard.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/24470/mbox/", "series": [ { "id": 5460, "url": "https://patchwork.libcamera.org/api/series/5460/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=5460", "date": "2025-09-26T11:07:06", "name": "libcamera: pipeline: virtual: Move image generation to separate thread", "version": 3, "mbox": "https://patchwork.libcamera.org/series/5460/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/24470/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/24470/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 61502C328C\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 26 Sep 2025 11:07:20 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 48A5F6B5F8;\n\tFri, 26 Sep 2025 13:07:17 +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 45B7B6B5AA\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 26 Sep 2025 13:07:13 +0200 (CEST)", "from pb-laptop.local (185.221.140.70.nat.pool.zt.hu\n\t[185.221.140.70])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id C5E8E1807;\n\tFri, 26 Sep 2025 13:05:47 +0200 (CEST)" ], "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"Nof9Ai2I\"; dkim-atps=neutral", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1758884747;\n\tbh=BRgpObAqrkaLmk3MaO4r97Uxh/5ymfSWs1KPGwiWopg=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=Nof9Ai2I1rP3y/1RbIUopx/SHLLtNWnlXfTxXwZZSXAsCyzBKh/a22BpXOibXH9ZK\n\tkRrVa10+gVAcNZDPR68qmxqXp+fw0ekHeA9TLWhyrUyFPEYGn+VGDHe2wSps5INjfd\n\tD4Ht727n37aoitKzk3zNrDuyGW04K/Z4lp/vRgwU=", "From": "=?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= <barnabas.pocze@ideasonboard.com>", "To": "libcamera-devel@lists.libcamera.org", "Cc": "Laurent Pinchart <laurent.pinchart@ideasonboard.com>", "Subject": "[PATCH v3 1/2] libcamera: base: thread: Make `removeMessages()`\n\tpublic", "Date": "Fri, 26 Sep 2025 13:07:07 +0200", "Message-ID": "<20250926110708.94112-2-barnabas.pocze@ideasonboard.com>", "X-Mailer": "git-send-email 2.51.0", "In-Reply-To": "<20250926110708.94112-1-barnabas.pocze@ideasonboard.com>", "References": "<20250926110708.94112-1-barnabas.pocze@ideasonboard.com>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "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": "Sometimes there is a need to remove pending messages of an object. For example,\nwhen the main purpose of a thread is to carry out work asynchronously using\ninvoke messages, then there might be a need to stop processing because some\nkind of state has changed. This can be done in two main ways: flushing messages\nor removing them. This changes enables the second option, which is useful if\nthe effects of the pending messages are no longer desired.\n\nSigned-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>\nReviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n include/libcamera/base/thread.h | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/include/libcamera/base/thread.h b/include/libcamera/base/thread.h\nindex b9284c2c0..eb1a52ab1 100644\n--- a/include/libcamera/base/thread.h\n+++ b/include/libcamera/base/thread.h\n@@ -50,6 +50,7 @@ public:\n \n \tvoid dispatchMessages(Message::Type type = Message::Type::None,\n \t\t\t Object *receiver = nullptr);\n+\tvoid removeMessages(Object *receiver);\n \n protected:\n \tint exec();\n@@ -64,7 +65,6 @@ private:\n \tvoid setThreadAffinityInternal();\n \n \tvoid postMessage(std::unique_ptr<Message> msg, Object *receiver);\n-\tvoid removeMessages(Object *receiver);\n \n \tfriend class Object;\n \tfriend class ThreadData;\n", "prefixes": [ "v3", "1/2" ] }