sysprofd: remove use of GAtomicRCBox

Using an embedded ref count allows us to backport to older operating
systems for which GLib is restricted to 2.56.
This commit is contained in:
Christian Hergert
2020-02-20 11:01:02 -08:00
parent 1017fed467
commit d89a689ab4
3 changed files with 32 additions and 14 deletions

View File

@ -84,7 +84,7 @@ ipc_rapl_profiler_stop_locked (IpcRaplProfiler *self)
if (self->turbostat != NULL)
sysprof_turbostat_stop (self->turbostat);
g_clear_pointer (&self->turbostat, sysprof_turbostat_free);
g_clear_pointer (&self->turbostat, sysprof_turbostat_unref);
g_clear_pointer (&self->counter_ids, g_array_unref);
if (self->writer != NULL)