diff options
author | Benny Baumann <BenBE@geshi.org> | 2021-04-10 14:08:26 +0200 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-05-23 09:22:21 +0200 |
commit | 7224d0e0831ee53d5028915f87dffd51ffa0d6fa (patch) | |
tree | c193e41f03dd30cf414d427c5e4e71b127842d98 /freebsd/FreeBSDProcess.h | |
parent | 1a1fddae851b344b0a89a8f2753e2d2487f34064 (diff) |
Move kernel/userland thread handling to platform-independent implementation
Diffstat (limited to 'freebsd/FreeBSDProcess.h')
-rw-r--r-- | freebsd/FreeBSDProcess.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/freebsd/FreeBSDProcess.h b/freebsd/FreeBSDProcess.h index 5b6b4c66..0e0bd59f 100644 --- a/freebsd/FreeBSDProcess.h +++ b/freebsd/FreeBSDProcess.h @@ -16,19 +16,10 @@ in the source distribution for its full text. typedef struct FreeBSDProcess_ { Process super; - bool isKernelThread; int jid; char* jname; } FreeBSDProcess; -static inline bool Process_isKernelThread(const Process* this) { - return ((const FreeBSDProcess*)this)->isKernelThread; -} - -static inline bool Process_isUserlandThread(const Process* this) { - return this->pid != this->tgid; -} - extern const ProcessClass FreeBSDProcess_class; extern const ProcessFieldData Process_fields[LAST_PROCESSFIELD]; @@ -37,6 +28,4 @@ Process* FreeBSDProcess_new(const Settings* settings); void Process_delete(Object* cast); -bool Process_isThread(const Process* this); - #endif |