mirror of https://github.com/xzeldon/htop.git
Implement Process_isUserlandThread as function
Make it more readable and fix unenclosed macro arguments
This commit is contained in:
parent
d33b2be2ca
commit
76797f8d92
|
@ -157,7 +157,9 @@ typedef struct LinuxProcess_ {
|
||||||
|
|
||||||
#define Process_isKernelThread(_process) (((const LinuxProcess*)(_process))->isKernelThread)
|
#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;
|
extern long long btime;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue