diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-10-03 11:46:57 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-10-03 11:46:57 +0900 |
commit | c9932b7c1a3ecfc2f4a8c4fbc18e9260e302962d (patch) | |
tree | 78149b60e513b2d1a83aa14d8f66b428a6eb14e4 /examples/demo/opengl/fbm.c | |
parent | 24032974c6494ce11d6d0e17a0f9a57294720d9e (diff) | |
download | tqt3-c9932b7c1a3ecfc2f4a8c4fbc18e9260e302962d.tar.gz tqt3-c9932b7c1a3ecfc2f4a8c4fbc18e9260e302962d.zip |
Make sure to release thread resources back to the OS once the thread completes.
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.
Manually cherry-picked from commit 81288cfc.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'examples/demo/opengl/fbm.c')
0 files changed, 0 insertions, 0 deletions