summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/qsemaphore.3qt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/man3/qsemaphore.3qt')
-rw-r--r--doc/man/man3/qsemaphore.3qt2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/man/man3/qsemaphore.3qt b/doc/man/man3/qsemaphore.3qt
index 5a957fbbf..567f8ad62 100644
--- a/doc/man/man3/qsemaphore.3qt
+++ b/doc/man/man3/qsemaphore.3qt
@@ -52,7 +52,7 @@ For example, suppose we have an application that stores data in a large tree str
.PP
A non-computing example of a semaphore would be dining at a restuarant. A semaphore is initialized to have a maximum count equal to the number of chairs in the restuarant. As people arrive, they want a seat. As seats are filled, the semaphore is accessed, once per person. As people leave, the access is released, allowing more people to enter. If a party of 10 people want to be seated, but there are only 9 seats, those 10 people will wait, but a party of 4 people would be seated (taking the available seats to 5, making the party of 10 people wait longer).
.PP
-When a semaphore is created it is given a number which is the maximum number of concurrent accesses it will permit. Accesses to the sempahore are gained using operator++() or operator+=(), and released with operator--() or operator-=(). The number of accesses allowed is retrieved with available(), and the total number with total(). Note that the incrementing functions will block if there aren't enough available accesses. Use tryAccess() if you want to actquire accesses without blocking.
+When a semaphore is created it is given a number which is the maximum number of concurrent accesses it will permit. Accesses to the sempahore are gained using operator++() or operator+=(), and released with operator--() or operator-=(). The number of accesses allowed is retrieved with available(), and the total number with total(). Note that the incrementing functions will block if there aren't enough available accesses. Use tryAccess() if you want to acquire accesses without blocking.
.PP
See also Environment Classes and Threading.
.SH MEMBER FUNCTION DOCUMENTATION