summaryrefslogtreecommitdiffstats
path: root/src/tools/tqsemaphore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/tqsemaphore.cpp')
-rw-r--r--src/tools/tqsemaphore.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tools/tqsemaphore.cpp b/src/tools/tqsemaphore.cpp
index a5cdfc630..6b440fb73 100644
--- a/src/tools/tqsemaphore.cpp
+++ b/src/tools/tqsemaphore.cpp
@@ -99,7 +99,7 @@ public:
TQSemaphorePrivate::TQSemaphorePrivate(int m)
- : mutex(FALSE), value(0), max(m)
+ : mutex(false), value(0), max(m)
{
}
@@ -236,8 +236,8 @@ int TQSemaphore::total() const
/*!
Try to get access to the semaphore. If \l available() \< \a n, this
- function will return FALSE immediately. If \l available() \>= \a n,
- this function will take \a n accesses and return TRUE. This
+ function will return false immediately. If \l available() \>= \a n,
+ this function will take \a n accesses and return true. This
function does \e not block.
*/
bool TQSemaphore::tryAccess(int n)
@@ -245,11 +245,11 @@ bool TQSemaphore::tryAccess(int n)
TQMutexLocker locker(&d->mutex);
if (d->value + n > d->max)
- return FALSE;
+ return false;
d->value += n;
- return TRUE;
+ return true;
}
#endif // TQT_THREAD_SUPPORT