summaryrefslogtreecommitdiffstats
path: root/src/kernel/qlock.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2018-10-17 19:46:30 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2018-10-17 19:46:30 +0900
commit69d87202cb139ffe9e4b3ce92e434523b7b09b64 (patch)
tree7b133311a4d5e5394f2612dced305f815c04847b /src/kernel/qlock.cpp
parente07baa10b7b8e7105e02a621efadac67216c61ed (diff)
downloadtqt3-69d87202cb139ffe9e4b3ce92e434523b7b09b64.tar.gz
tqt3-69d87202cb139ffe9e4b3ce92e434523b7b09b64.zip
QT_NO_* -> TQT_NO_* renaming.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/kernel/qlock.cpp')
-rw-r--r--src/kernel/qlock.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/kernel/qlock.cpp b/src/kernel/qlock.cpp
index 49edf98ca..f8b8be467 100644
--- a/src/kernel/qlock.cpp
+++ b/src/kernel/qlock.cpp
@@ -38,7 +38,7 @@
#include "qlock_p.h"
-#ifndef QT_NO_QWS_MULTIPROCESS
+#ifndef TQT_NO_QWS_MULTIPROCESS
#include <unistd.h>
#include <sys/types.h>
@@ -112,7 +112,7 @@ public:
TQLock::TQLock( const TQString &filename, char id, bool create )
{
-#ifndef QT_NO_QWS_MULTIPROCESS
+#ifndef TQT_NO_QWS_MULTIPROCESS
data = new TQLockData;
data->count = 0;
#ifdef Q_NO_SEMAPHORE
@@ -153,7 +153,7 @@ TQLock::TQLock( const TQString &filename, char id, bool create )
TQLock::~TQLock()
{
-#ifndef QT_NO_QWS_MULTIPROCESS
+#ifndef TQT_NO_QWS_MULTIPROCESS
if ( locked() )
unlock();
#ifdef Q_NO_SEMAPHORE
@@ -181,7 +181,7 @@ TQLock::~TQLock()
bool TQLock::isValid() const
{
-#ifndef QT_NO_QWS_MULTIPROCESS
+#ifndef TQT_NO_QWS_MULTIPROCESS
return (data->id != -1);
#else
return TRUE;
@@ -202,7 +202,7 @@ bool TQLock::isValid() const
void TQLock::lock( Type t )
{
-#ifndef QT_NO_QWS_MULTIPROCESS
+#ifndef TQT_NO_QWS_MULTIPROCESS
if ( !data->count ) {
#ifdef Q_NO_SEMAPHORE
int op = LOCK_SH;
@@ -248,7 +248,7 @@ void TQLock::lock( Type t )
void TQLock::unlock()
{
-#ifndef QT_NO_QWS_MULTIPROCESS
+#ifndef TQT_NO_QWS_MULTIPROCESS
if( data->count ) {
data->count--;
if( !data->count ) {
@@ -289,7 +289,7 @@ void TQLock::unlock()
bool TQLock::locked() const
{
-#ifndef QT_NO_QWS_MULTIPROCESS
+#ifndef TQT_NO_QWS_MULTIPROCESS
return (data->count > 0);
#else
return FALSE;