From 69f439eff387a6ecb52734e400b297a3c85f2285 Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Tue, 21 Sep 2021 08:35:19 +0200 Subject: New upstream version 3.1.0 --- openbsd/OpenBSDProcess.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'openbsd/OpenBSDProcess.h') 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 -- cgit v1.2.3