diff options
Diffstat (limited to 'src/kernel/qlock.cpp')
-rw-r--r-- | src/kernel/qlock.cpp | 14 |
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; |