summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2020-12-01 23:27:04 +0100
committerBenBE <BenBE@geshi.org>2020-12-02 23:50:05 +0100
commitd0e71cb75f088394b6a5c99a15cfe60fd6fbbc9d (patch)
tree157ae1d5ab067c392a2af1bc8eb5ba078b93ef1c
parente3b60490430884cac93723bf5353720527cc953c (diff)
Reorder field initialization to group fields by task
-rw-r--r--ProcessList.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/ProcessList.c b/ProcessList.c
index 826c9298..30cd0f03 100644
--- a/ProcessList.c
+++ b/ProcessList.c
@@ -20,16 +20,16 @@ in the source distribution for its full text.
ProcessList* ProcessList_init(ProcessList* this, const ObjectClass* klass, UsersTable* usersTable, Hashtable* pidMatchList, uid_t userId) {
this->processes = Vector_new(klass, true, DEFAULT_SIZE);
+ this->processes2 = Vector_new(klass, true, DEFAULT_SIZE); // tree-view auxiliary buffer
+
this->processTable = Hashtable_new(200, false);
+ this->displayTreeSet = Hashtable_new(200, false);
+ this->draftingTreeSet = Hashtable_new(200, false);
+
this->usersTable = usersTable;
this->pidMatchList = pidMatchList;
- this->userId = userId;
-
- // tree-view auxiliary buffer
- this->processes2 = Vector_new(klass, true, DEFAULT_SIZE);
- this->displayTreeSet = Hashtable_new(200, false);
- this->draftingTreeSet = Hashtable_new(200, false);
+ this->userId = userId;
// set later by platform-specific code
this->cpuCount = 0;
@@ -65,11 +65,13 @@ void ProcessList_done(ProcessList* this) {
hwloc_topology_destroy(this->topology);
}
#endif
- Hashtable_delete(this->displayTreeSet);
+
Hashtable_delete(this->draftingTreeSet);
+ Hashtable_delete(this->displayTreeSet);
Hashtable_delete(this->processTable);
- Vector_delete(this->processes);
+
Vector_delete(this->processes2);
+ Vector_delete(this->processes);
}
void ProcessList_setPanel(ProcessList* this, Panel* panel) {

© 2014-2024 Faster IT GmbH | imprint | privacy policy