diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-12-22 12:05:18 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-12-22 12:13:05 +0900 |
| commit | a4ebd73f48610ed351c9c53f3646d0597f8ea7bc (patch) | |
| tree | 2edd219eef4cb8f35bb3844d06902ae8b2fcb565 /src/tools/tqthreadstorage_unix.cpp | |
| parent | 7d612f7c91d55501276a385a30dbadb121e7bd9f (diff) | |
| download | tqt-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/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() */ |
