diff options
Diffstat (limited to 'src/tools/tqthreadstorage_unix.cpp')
| -rw-r--r-- | src/tools/tqthreadstorage_unix.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tools/tqthreadstorage_unix.cpp b/src/tools/tqthreadstorage_unix.cpp index 71b10822b..b982590f9 100644 --- a/src/tools/tqthreadstorage_unix.cpp +++ b/src/tools/tqthreadstorage_unix.cpp @@ -55,7 +55,7 @@ static const int MAX_THREAD_STORAGE = 257; // 256 maximum + 1 used in TQRegExp static pthread_mutex_t thread_storage_mutex = PTHREAD_MUTEX_INITIALIZER; -static bool thread_storage_init = FALSE; +static bool thread_storage_init = false; static struct { bool used; void (*func)( void * ); @@ -70,7 +70,7 @@ TQThreadStorageData::TQThreadStorageData( void (*func)( void * ) ) // make sure things are initialized if ( ! thread_storage_init ) memset( thread_storage_usage, 0, sizeof( thread_storage_usage ) ); - thread_storage_init = TRUE; + thread_storage_init = true; for ( ; id < MAX_THREAD_STORAGE; ++id ) { if ( !thread_storage_usage[id].used ) @@ -78,7 +78,7 @@ TQThreadStorageData::TQThreadStorageData( void (*func)( void * ) ) } Q_ASSERT( id >= 0 && id < MAX_THREAD_STORAGE ); - thread_storage_usage[id].used = TRUE; + thread_storage_usage[id].used = true; thread_storage_usage[id].func = func; #ifdef TQTHREADSTORAGE_DEBUG @@ -106,7 +106,7 @@ TQThreadStorageData::~TQThreadStorageData() } pthread_mutex_lock( &thread_storage_mutex ); - thread_storage_usage[id].used = FALSE; + thread_storage_usage[id].used = false; thread_storage_usage[id].func = 0; #ifdef TQTHREADSTORAGE_DEBUG @@ -287,8 +287,8 @@ void TQThreadStorageData::finish( void **thread_storage ) /*! \fn bool TQThreadStorage::hasLocalData() const - Returns TRUE if the calling thread has non-zero data available; - otherwise returns FALSE. + Returns true if the calling thread has non-zero data available; + otherwise returns false. \sa localData() */ |
