aboutsummaryrefslogtreecommitdiffstats
path: root/ProcessList.h
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2022-05-02 16:04:21 +0200
committerDaniel Lange <DLange@git.local>2022-05-02 16:04:21 +0200
commit1b805a31720727008b32b1129a167758519fd4db (patch)
tree900c84e10a25f2c8eaeec3ae54f1365688ce02a4 /ProcessList.h
parenta6822e98434cf7da6fab033898094976d881ee0f (diff)
downloaddebian_htop-1b805a31720727008b32b1129a167758519fd4db.tar.gz
debian_htop-1b805a31720727008b32b1129a167758519fd4db.tar.bz2
debian_htop-1b805a31720727008b32b1129a167758519fd4db.zip
New upstream version 3.2.0upstream/3.2.0
Diffstat (limited to 'ProcessList.h')
-rw-r--r--ProcessList.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/ProcessList.h b/ProcessList.h
index a12ffa1..c420038 100644
--- a/ProcessList.h
+++ b/ProcessList.h
@@ -43,13 +43,13 @@ typedef unsigned long long int memory_t;
typedef struct ProcessList_ {
const Settings* settings;
- Vector* processes;
- Vector* processes2;
- Hashtable* processTable;
+ Vector* processes; /* all known processes; sort order can vary and differ from display order */
+ Vector* displayList; /* process tree flattened in display order (borrowed);
+ updated in ProcessList_updateDisplayList when rebuilding panel */
+ Hashtable* processTable; /* fast known process lookup by PID */
UsersTable* usersTable;
- Hashtable* displayTreeSet;
- Hashtable* draftingTreeSet;
+ bool needsSort;
Hashtable* dynamicMeters; /* runtime-discovered meters */
Hashtable* dynamicColumns; /* runtime-discovered Columns */
@@ -108,7 +108,7 @@ void ProcessList_add(ProcessList* this, Process* p);
void ProcessList_remove(ProcessList* this, const Process* p);
-void ProcessList_sort(ProcessList* this);
+void ProcessList_updateDisplayList(ProcessList* this);
ProcessField ProcessList_keyAt(const ProcessList* this, int at);

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