From 4c4451c49c52b33f1714f3dd61c055cc84a91a8e Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Wed, 20 Aug 1997 20:30:51 +0000 Subject: Wed Aug 20 16:05:19 1997 Thomas Bushnell, n/BSG * kern/thread.h (struct thread): New member `creation_time'. * include/mach/thread_info.h: New member `creation_time'. * kern/thread.c (thread_create): Set creation time stamp. (thread_info) [THREAD_BASIC_INFO]: Fill in new creation time field. Carefully preserve compatibility with old callers. * kern/task.h (struct task): New member `creation_time'. * include/mach/task_info.h: New member `creation_time'. * kern/task.c (task_create): Set creation time stamp. (task_info) [TASK_BASIC_INFO]: Fill in new creation time field. Carefully preserve compatibility with old callers. --- include/mach/task_info.h | 1 + include/mach/thread_info.h | 1 + 2 files changed, 2 insertions(+) (limited to 'include/mach') diff --git a/include/mach/task_info.h b/include/mach/task_info.h index fdcbeb1..5607178 100644 --- a/include/mach/task_info.h +++ b/include/mach/task_info.h @@ -60,6 +60,7 @@ struct task_basic_info { terminated threads */ time_value_t system_time; /* total system run time for terminated threads */ + time_value_t creation_time; /* creation time stamp */ }; typedef struct task_basic_info task_basic_info_data_t; diff --git a/include/mach/thread_info.h b/include/mach/thread_info.h index 2c79829..60e8ba7 100644 --- a/include/mach/thread_info.h +++ b/include/mach/thread_info.h @@ -65,6 +65,7 @@ struct thread_basic_info { integer_t suspend_count; /* suspend count for thread */ integer_t sleep_time; /* number of seconds that thread has been sleeping */ + time_value_t creation_time; /* time stamp of creation */ }; typedef struct thread_basic_info thread_basic_info_data_t; -- cgit v1.2.3