summaryrefslogtreecommitdiffstats
path: root/ProcessList.h
diff options
context:
space:
mode:
Diffstat (limited to 'ProcessList.h')
-rw-r--r--ProcessList.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ProcessList.h b/ProcessList.h
index d4fd1f60..853ad35e 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