summaryrefslogtreecommitdiffstats
path: root/doc/html/t10-cannon-h.html
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-08-23 23:40:14 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-08-29 12:03:27 +0900
commit08ac5cce693a7634341db8f4da4d729a64b0af46 (patch)
tree3710cdf79334f5f1b2dccd697a2faead19d20986 /doc/html/t10-cannon-h.html
parent09d080c07ca7e500fd7134de7c5442af24618b27 (diff)
downloadtqt3-r14.1.x.tar.gz
tqt3-r14.1.x.zip
Improve handling of the global post event list in order to minimize possible crashes on exit.r14.1.x
Key points: 1. a TQPostEventList can now have an associated mutex, which is used in case of the global post event list (GPEL) 2. the lifetime of the GPEL is no longer associated to the lifetime of the TQApplication object, but rather extended to the lifetime of the main thread. The GPEL is a static local initialized on first access and destroyed when the global static object destructor is invoked 3. access to the GPEL after the TQApplication object has been destroyed has been minimized by protecting calls in ~TQObject() and ~TQWidget(). 4. special care was taken not to affect performances or unnecessarily create tons of unused TQMutexes This replaces PR #182. Technically it is still possibly unsafe due to the order of destruction of the globat static objects not being guaranteed across multiple compilation units, but the aforementioned changes should minimize (possible to zero) the chances of a SEGV happening. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit ddce1c91f8582885497b463b24bac59f6fdfdf63)
Diffstat (limited to 'doc/html/t10-cannon-h.html')
0 files changed, 0 insertions, 0 deletions