From patchwork Thu Jul 1 23:07:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 12762 X-Patchwork-Delegate: laurent.pinchart@ideasonboard.com Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id D16C8C3223 for ; Thu, 1 Jul 2021 23:08:31 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id EA48C684F2; Fri, 2 Jul 2021 01:08:30 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="N+dQTRCG"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 022F3684E3 for ; Fri, 2 Jul 2021 01:08:26 +0200 (CEST) Received: from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 7002AA15; Fri, 2 Jul 2021 01:08:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1625180905; bh=HPotrqiJYhYzaqt76k73aSYoCoVjoc8I/E0b9rACjvA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=N+dQTRCGWzir7wtlVyN0J+G7hLvWf8yXTCKs5oGbykoasw3gnWSnY6xiefOH+r6Ir JFKtnZfv13mNrVay6YVmfcfl/Cme+KCaJHGeP/MaDXMJkL+TUfy4yFOHcyIwKxAVRS mmB6e/2erujg6HrrtyPL2PKL1BAr2dR2iVfP8mf0= From: Laurent Pinchart 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 Subject: [libcamera-devel] [PATCH 1/3] base: thread: Document the postMessage() function as thread-safe X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" The Thread::postMessage() function is thread-safe, document it as such. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham --- src/libcamera/base/thread.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libcamera/base/thread.cpp b/src/libcamera/base/thread.cpp index c7c2d6b29d6a..7f79115222e8 100644 --- a/src/libcamera/base/thread.cpp +++ b/src/libcamera/base/thread.cpp @@ -526,6 +526,8 @@ EventDispatcher *Thread::eventDispatcher() * * If the \a receiver is not bound to this thread the behaviour is undefined. * + * \context This function is \threadsafe. + * * \sa exec() */ void Thread::postMessage(std::unique_ptr msg, Object *receiver)