summaryrefslogtreecommitdiffstats
path: root/src/tools/qmutex_unix.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Rename threading nt* related files to equivalent tq*Michele Calgaro2024-06-301-535/+0
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Enable use of pthread's recursive mutexesBobby Bingham2023-06-021-190/+6
| | | | Signed-off-by: Bobby Bingham <koorogi@koorogi.info>
* Fix level when using pthreads recursive mutexBobby Bingham2023-05-231-16/+12
| | | | | | | | | | | | | | | | | When using the pthreads recursive mutex, the level method was only able to return either zero or one, but a recursive mutex can be locked more than once. Additionally, the way this detected if the mutex was already locked was to test whether it can be locked again. If testing from the thread that is currently holding the lock, this locking attempt always succeeds, and therefore determines that the lock is _not_ held at all. This is especially bad, as this operation only makes sense to perform from the thread that holds the lock -- if any thread not holding the lock queries the number of times the lock is held, that answer can change before the thread can used it. Signed-off-by: Bobby Bingham <koorogi@koorogi.info>
* tools: fix to use `pthread_t` for Thread IDOBATA Akio2021-12-281-10/+10
| | | | | | | | | | | Thread ID is opaque type pthread_t, it may not be compatible with integer, and may integer with valid id `0`. Change to store mutex owner thread ID as `pthread_t` type with valid flag and compare with `pthread_equal()`, and don't try to print it. Signed-off-by: OBATA Akio <obache@wizdas.com>
* Conversion QT_THREAD_SUPPORT -> TQT_THREAD_SUPPORT. This is part of theMichele Calgaro2018-09-161-2/+2
| | | | | | | qt->tqt conversion and is required to align to corresponding patch for common/admin module. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Do not force POSIX mutexes on FreeBSDSlávek Banko2017-03-121-2/+2
| | | | | | | This relates to bug 2462 See comments on bug 2744 Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Fix FTBFS because invalid data conversion in qmutexFrançois Andriot2014-09-071-2/+3
|
* Automated update from Qt3Timothy Pearson2012-12-071-0/+28
|
* Automated update from Qt3Timothy Pearson2012-12-061-1/+0
|
* Automated conversion from qt3Timothy Pearson2012-02-281-13/+13
|
* Update to latest tqt3 automated conversionTimothy Pearson2012-01-261-3/+3
|
* Sync with latest scriptTimothy Pearson2011-12-051-1/+1
|
* Test conversion to TQt3 from Qt3 8c6fc1f8e35fd264dd01c582ca5e7549b32ab731Timothy Pearson2011-11-081-0/+695