From 7533ce05e9f0af0e0af5c2484e908b6026a03f16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 13 Oct 2004 15:16:56 +0000 Subject: [PATCH] Moved the thread::sem fields into their own sub-structure for clarity. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9327 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/kernel/thread_types.h | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/headers/private/kernel/thread_types.h b/headers/private/kernel/thread_types.h index 74701d2d7a..506e3143d2 100644 --- a/headers/private/kernel/thread_types.h +++ b/headers/private/kernel/thread_types.h @@ -96,9 +96,9 @@ struct thread { timer alarm; thread_id id; char name[B_OS_NAME_LENGTH]; - int priority; - int state; - int next_state; + int32 priority; + int32 state; + int32 next_state; union cpu_ent *cpu; sigset_t sig_pending; @@ -107,11 +107,13 @@ struct thread { bool in_kernel; - sem_id sem_blocking; - int sem_count; - int sem_acquire_count; - int sem_errcode; - int sem_flags; + struct { + sem_id blocking; + int32 count; + int32 acquire_count; + status_t acquire_status; + int32 flags; + } sem; struct { sem_id write_sem; @@ -152,7 +154,7 @@ struct thread { bigtime_t user_time; bigtime_t kernel_time; bigtime_t last_time; - int last_time_type; // KERNEL_TIME or USER_TIME + int32 last_time_type; // KERNEL_TIME or USER_TIME // architecture dependant section struct arch_thread arch_info;