diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-07-02 01:38:00 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-07-11 17:22:49 +0300 |
commit | 4c63bb4938b88bf8005c4f3dbe378c05ece70b3a (patch) | |
tree | 20da74367328a45ee2f78a8ac054595b58c455cb | |
parent | f23f3922b31651812c6c9da85023bd68c18d89b0 (diff) |
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 <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rw-r--r-- | src/libcamera/base/thread.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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<Message> msg, Object *receiver) |