summaryrefslogtreecommitdiffstats
path: root/linux/LinuxProcess.h
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-10-27 21:26:41 +0100
committercgzones <cgzones@googlemail.com>2020-10-28 19:57:10 +0100
commit76797f8d928a9278f7356e270ef07cea1db5510a (patch)
tree2a8e3808fd68a7bac1911061f63b3198da626d5a /linux/LinuxProcess.h
parentd33b2be2ca445badb3c3004b618c8e7c79677f8c (diff)
Implement Process_isUserlandThread as function
Make it more readable and fix unenclosed macro arguments
Diffstat (limited to 'linux/LinuxProcess.h')
-rw-r--r--linux/LinuxProcess.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/LinuxProcess.h b/linux/LinuxProcess.h
index 02e4af7e..3f978346 100644
--- a/linux/LinuxProcess.h
+++ b/linux/LinuxProcess.h
@@ -157,7 +157,9 @@ typedef struct LinuxProcess_ {
#define Process_isKernelThread(_process) (((const LinuxProcess*)(_process))->isKernelThread)
-#define Process_isUserlandThread(_process) (_process->pid != _process->tgid)
+static inline bool Process_isUserlandThread(const Process* this) {
+ return this->pid != this->tgid;
+}
extern long long btime;

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