process-util: add getpid_cached() as a caching wrapper for getpid()
Let's make getpid() fast again.
This commit is contained in:
@@ -119,3 +119,5 @@ static inline bool ioprio_priority_is_valid(int i) {
|
||||
}
|
||||
|
||||
int ioprio_parse_priority(const char *s, int *ret);
|
||||
|
||||
pid_t getpid_cached(void);
|
||||
|
||||
Reference in New Issue
Block a user