From 4c63bb4938b88bf8005c4f3dbe378c05ece70b3a Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Fri, 2 Jul 2021 01:38:00 +0300 Subject: base: thread: Document the postMessage() function as thread-safe 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(+) (limited to 'src') diff --git a/src/libcamera/base/thread.cpp b/src/libcamera/base/thread.cpp index c7c2d6b2..7f791152 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) -- cgit v1.2.1