diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-10-21 19:11:26 +0200 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-10-29 22:21:42 +0100 |
commit | 049046c700ea42e8f9bb77f5efbb5a66ed3c4651 (patch) | |
tree | eedfebf20d42e83d23be9c6034a9ded7ca554213 /freebsd/FreeBSDProcess.h | |
parent | 97ea45ca9a4ee639681e3048be4813b56c969bdd (diff) |
FreeBSD: update Process
Diffstat (limited to 'freebsd/FreeBSDProcess.h')
-rw-r--r-- | freebsd/FreeBSDProcess.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/freebsd/FreeBSDProcess.h b/freebsd/FreeBSDProcess.h index d6873d09..d2fee956 100644 --- a/freebsd/FreeBSDProcess.h +++ b/freebsd/FreeBSDProcess.h @@ -34,9 +34,13 @@ typedef struct FreeBSDProcess_ { const char* ttyPath; } FreeBSDProcess; -#define Process_isKernelThread(_process) (_process->kernel == 1) +static inline bool Process_isKernelThread(const Process* this) { + return ((const FreeBSDProcess*)this)->kernel == 1; +} -#define Process_isUserlandThread(_process) (_process->pid != _process->tgid) +static inline bool Process_isUserlandThread(const Process* this) { + return this->pid != this->tgid; +} extern const ProcessClass FreeBSDProcess_class; @@ -48,10 +52,6 @@ Process* FreeBSDProcess_new(const Settings* settings); void Process_delete(Object* cast); -void FreeBSDProcess_writeField(const Process* this, RichString* str, ProcessField field); - -long FreeBSDProcess_compare(const void* v1, const void* v2); - bool Process_isThread(const Process* this); #endif |