summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/wasm
diff options
context:
space:
mode:
authorMike Achtelik <mike.achtelik@gmail.com>2020-06-17 08:04:03 +0200
committerMike Achtelik <mike.achtelik@gmail.com>2020-06-28 19:12:32 +0200
commit76c3eee4020cae681857ee17406c655f61f9082c (patch)
tree18fac208110050de939943252c070ac4a290f0bb /src/plugins/platforms/wasm
parentf6b7b64ed0168038e365b936a1daea9b3bcda335 (diff)
Remove pthread storage for thread local data
The thread specific QThreadData is currently referenced as a thread_local variable and using a thread specific value via pthread_setspecific. Having both is not necessary, as the pthread value is never directly accessed and only used in the pthread destructor. Using a holder, we can achieve the same and get rid of the pthread handling altogether. This also fixes a bug, where the thread_local currentThreadData is already null, when entering the pthread destructor. In this case it would lead to a new QThreadData being created, when finishing an adopted thread. Pick-to: 5.15 Change-Id: Ib23b840f804637e6b7cebd89016672a34a575380 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/plugins/platforms/wasm')
0 files changed, 0 insertions, 0 deletions