diff options
author | Daniel Lange <DLange@git.local> | 2021-09-21 08:35:19 +0200 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2021-09-21 08:35:19 +0200 |
commit | 69f439eff387a6ecb52734e400b297a3c85f2285 (patch) | |
tree | 2a988b7868b749654796183ba70b4272965da1bf /openbsd/OpenBSDProcess.h | |
parent | c55320e9e2a8916e911bcd39ab37b79e3a7d03b2 (diff) | |
download | debian_htop-69f439eff387a6ecb52734e400b297a3c85f2285.tar.gz debian_htop-69f439eff387a6ecb52734e400b297a3c85f2285.tar.bz2 debian_htop-69f439eff387a6ecb52734e400b297a3c85f2285.zip |
New upstream version 3.1.0upstream/3.1.0
Diffstat (limited to 'openbsd/OpenBSDProcess.h')
-rw-r--r-- | openbsd/OpenBSDProcess.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/openbsd/OpenBSDProcess.h b/openbsd/OpenBSDProcess.h index 6aab29a..ce078a0 100644 --- a/openbsd/OpenBSDProcess.h +++ b/openbsd/OpenBSDProcess.h @@ -17,11 +17,10 @@ in the source distribution for its full text. typedef struct OpenBSDProcess_ { Process super; -} OpenBSDProcess; - -#define Process_isKernelThread(_process) (_process->pgrp == 0) -#define Process_isUserlandThread(_process) (_process->pid != _process->tgid) + /* 'Kernel virtual addr of u-area' to detect main threads */ + uint64_t addr; +} OpenBSDProcess; extern const ProcessClass OpenBSDProcess_class; @@ -31,6 +30,4 @@ Process* OpenBSDProcess_new(const Settings* settings); void Process_delete(Object* cast); -bool Process_isThread(const Process* this); - #endif |