summaryrefslogtreecommitdiffstats
path: root/src/tools/tqsemaphore.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-12-22 12:05:18 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-12-22 12:13:05 +0900
commita4ebd73f48610ed351c9c53f3646d0597f8ea7bc (patch)
tree2edd219eef4cb8f35bb3844d06902ae8b2fcb565 /src/tools/tqsemaphore.cpp
parent7d612f7c91d55501276a385a30dbadb121e7bd9f (diff)
downloadtqt-rename/true-false-9.tar.gz
tqt-rename/true-false-9.zip
Replace TRUE/FALSE with boolean values true/false - part 9rename/true-false-9
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
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