Implement Process_isUserlandThread as function

Make it more readable and fix unenclosed macro arguments
This commit is contained in:
Christian Göttsche 2020-10-27 21:26:41 +01:00 committed by cgzones
parent d33b2be2ca
commit 76797f8d92
1 changed files with 3 additions and 1 deletions

View File

@ -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;