diff options
author | Carlos Soriano <csoriano@gnome.org> | 2018-01-19 23:16:41 +0100 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2018-01-20 00:24:04 +0100 |
commit | 9ae723086f8a7efcde2302e5c3c95a342a638b96 (patch) | |
tree | c10e50b5b40f71d4e762c2e4f5565e851c0b4955 | |
parent | 73a30b71345e26aeb2a8a412fe72adccf3895be8 (diff) | |
download | nautilus-9ae723086f8a7efcde2302e5c3c95a342a638b96.tar.gz |
task-manager: Make it a daemon
Leak it on purpose, so we don't need to handle the memory and we can
make it live for the whole Nautilus process in order to retrieve the
state at any point and statistics if necessary.
-rw-r--r-- | src-ng/nautilus-task-manager.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src-ng/nautilus-task-manager.c b/src-ng/nautilus-task-manager.c index a83d6b482..637bed30b 100644 --- a/src-ng/nautilus-task-manager.c +++ b/src-ng/nautilus-task-manager.c @@ -51,6 +51,12 @@ constructor (GType type, construct_properties)); g_object_add_weak_pointer (G_OBJECT (instance), (gpointer *) &instance); + /* The task manager should be like a daemon, always present while + * Nautilus is running, so we avoid the memory handling all around + * and have a way to know statistics an status of the task management in + * general during the whole Nautilus proccess duration. + */ + g_object_ref (instance); g_mutex_unlock (&mutex); |