tracers: rusage: use thread-local storage for per-thread stats
authorTim-Philipp Müller <tim@centricular.com>
Sun, 26 Jan 2020 00:56:44 +0000 (00:56 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 28 Feb 2020 15:54:38 +0000 (15:54 +0000)
commitb8f5cb5a3a354471914c8a777e9a53669fe14723
tree3ded4cf7b7333bd531f5b4ad0d2f1ce566d53013
parent04aad3f4cfe7a8400faea0caf34e31bb88cd1774
tracers: rusage: use thread-local storage for per-thread stats

.. instead of looking things up by thread id from a GHashTable,
which also happens to have no locking around insertion/lookup.
plugins/tracers/gstrusage.c
plugins/tracers/gstrusage.h