summaryrefslogtreecommitdiffstats
path: root/src/kernel/tqthread_unix.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Rename 'guiThread' and related functions to 'coreThread'.Michele Calgaro2025-07-271-1/+1
| | | | | | | A TTY TQApplication is GUI-less, so the usage of the term 'GUI' is misleading. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Fix usage of condition variable in TQThread which could lead to a thread ↵Michele Calgaro2025-03-221-3/+5
| | | | | | | | | | | being run multiple times in parallel. Although highly unlikely, the following situation was possible: - a thread is restarted while still running. The call to the second 'start()' blocks because the thread is still running - the OS decides to randomly wake up the thread that called 'start()' - a second thread is started and runs in parallel to the first thread, with obvious undefined behavior Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename ntqapplication, ntqconfig and ntqmodules files to equivalent tq*Michele Calgaro2024-10-221-1/+1
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Remove use of glib thread code. Use pthread insteadMichele Calgaro2024-10-081-31/+0
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Make sure to release thread resources back to the OS once the thread completes.Michele Calgaro2024-10-021-0/+1
| | | | | | | | Threads created with pthread are created in detach mode. Threads created using glib thread functions are instead created as joinable. The fix makes glib-created threads detached, so that the thread resources are released when the thread completes. This resolves TDE/amarok#30 and will benefit any place where a TQThread is used. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename threading nt* related files to equivalent tq*Michele Calgaro2024-06-301-0/+569
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>