diff options
author | Rym Bouabid <rym.bouabid@qt.io> | 2023-09-11 16:32:10 +0200 |
---|---|---|
committer | Rym Bouabid <rym.bouabid@qt.io> | 2023-09-13 20:45:17 +0200 |
commit | 70815d31fe6075d15a85be90c940d3f9d3b8d05c (patch) | |
tree | f7629d7ba9dfb69585fc8ba54673a3149d7f3bed /src/corelib/thread | |
parent | 8643b52467f4034498c7fb08ede4b1f429ed5aa5 (diff) |
Revamp Semaphores example: Revisit the documentation
Change the title.
Remove the first \brief as there are two briefs in the document
so that the new title makes sense with the second brief in
"All Qt Examples" doc page.
Task-number: QTBUG-108859
Pick-to: 6.6 6.5
Change-Id: I8b0370c9a85179e172918231ae48a3c52845bf21
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Diffstat (limited to 'src/corelib/thread')
-rw-r--r-- | src/corelib/thread/qsemaphore.cpp | 5 | ||||
-rw-r--r-- | src/corelib/thread/qthread.cpp | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/corelib/thread/qsemaphore.cpp b/src/corelib/thread/qsemaphore.cpp index 2437c96595..b11a7051b6 100644 --- a/src/corelib/thread/qsemaphore.cpp +++ b/src/corelib/thread/qsemaphore.cpp @@ -50,7 +50,7 @@ using namespace QtFutex; A typical application of semaphores is for controlling access to a circular buffer shared by a producer thread and a consumer - thread. The \l{Semaphores Example} shows how + thread. The \l{Producer and Consumer using Semaphores} example shows how to use QSemaphore to solve that problem. A non-computing example of a semaphore would be dining at a @@ -63,7 +63,8 @@ using namespace QtFutex; seated (taking the available seats to 5, making the party of 10 people wait longer). - \sa QSemaphoreReleaser, QMutex, QWaitCondition, QThread, {Semaphores Example} + \sa QSemaphoreReleaser, QMutex, QWaitCondition, QThread, + {Producer and Consumer using Semaphores} */ /* diff --git a/src/corelib/thread/qthread.cpp b/src/corelib/thread/qthread.cpp index ab5893f7ab..bade2e529a 100644 --- a/src/corelib/thread/qthread.cpp +++ b/src/corelib/thread/qthread.cpp @@ -288,7 +288,8 @@ QThreadPrivate::~QThreadPrivate() Note that this is currently not available with release builds on Windows. \sa {Thread Support in Qt}, QThreadStorage, {Synchronizing Threads}, - Mandelbrot, {Semaphores Example}, {Wait Conditions Example} + Mandelbrot, {Producer and Consumer using Semaphores}, + {Wait Conditions Example} */ /*! |