Sysinfo Gadget: Thread Lifetime vs Object Lifetime management

Desktop / Enlightenment / Enlightenment - Stephen 'Okra' Houston [gmail.com] - 13 July 2017 20:21 EDT

This cleans up how sysinfo manages object vs thread lifetimes. If thread is still alive dependent on aspects that need to be freed in the gadget removal process, it defers that cleanup from the remove callback to the thread end callback. As for the combination sysinfo gadget, each gadget inside of sysinfo will set a done flag alerting that the cleanup of the combination gadget can happen once all threads are done. This fixes T5694

804f038 Sysinfo Gadget: Thread Lifetime vs Object Lifetime management.
src/modules/sysinfo/batman/batman.c | 20 ++++++++
src/modules/sysinfo/cpuclock/cpuclock.c | 78 +++++++++++++++++++++++-----
src/modules/sysinfo/cpumonitor/cpumonitor.c | 74 +++++++++++++++++++++++++--
src/modules/sysinfo/memusage/memusage.c | 72 ++++++++++++++++++++++++--
src/modules/sysinfo/mod.c | 11 ++++
src/modules/sysinfo/netstatus/netstatus.c | 72 ++++++++++++++++++++++++--
src/modules/sysinfo/sysinfo.c | 30 +++++++++--
src/modules/sysinfo/sysinfo.h | 11 ++++
src/modules/sysinfo/thermal/thermal.c | 79 ++++++++++++++++++++++++++---
9 files changed, 405 insertions(+), 42 deletions(-)

Upstream: git.enlightenment.org


  • Share