diff options
author | Daniel Lange <DLange@git.local> | 2021-03-21 17:48:41 +0100 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2021-03-21 17:48:41 +0100 |
commit | 6ea93fc6c0e4734ceb0cd85b77878a9033b1713c (patch) | |
tree | 9c118f9f1fbaf610eb8397ea2f348b8f1272e2fa /ProcessList.h | |
parent | 63019065dce4bc14b1f8bf437d7314b30a1c5970 (diff) | |
parent | e4e3f6c390452b4996ece4c92284410e58634052 (diff) |
Merge branch 'openbsd' of cgzones/htop
Diffstat (limited to 'ProcessList.h')
-rw-r--r-- | ProcessList.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ProcessList.h b/ProcessList.h index bfbe0ab3..3d9b8ff2 100644 --- a/ProcessList.h +++ b/ProcessList.h @@ -115,4 +115,8 @@ Process* ProcessList_getProcess(ProcessList* this, pid_t pid, bool* preExisting, void ProcessList_scan(ProcessList* this, bool pauseProcessUpdate); +static inline Process* ProcessList_findProcess(ProcessList* this, pid_t pid) { + return (Process*) Hashtable_get(this->processTable, pid); +} + #endif |