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>
This commit is contained in:
Laurent Pinchart 2021-07-02 01:38:00 +03:00
parent f23f3922b3
commit 4c63bb4938

View file

@ -526,6 +526,8 @@ EventDispatcher *Thread::eventDispatcher()
* *
* If the \a receiver is not bound to this thread the behaviour is undefined. * If the \a receiver is not bound to this thread the behaviour is undefined.
* *
* \context This function is \threadsafe.
*
* \sa exec() * \sa exec()
*/ */
void Thread::postMessage(std::unique_ptr<Message> msg, Object *receiver) void Thread::postMessage(std::unique_ptr<Message> msg, Object *receiver)