Added fields to be able to track the time spent in children and threads

that are already gone.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10250 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-11-26 14:46:47 +00:00
parent 791fc0bf95
commit 2080a7c04f

View File

@ -1,12 +1,12 @@
/* Thread definition and structures
**
** Distributed under the terms of the OpenBeOS License.
*/
/* Copyright 2004, Haiku Inc.
* Distributed under the terms of the MIT License.
*
* Thread definition and structures
*/
#ifndef _KERNEL_THREAD_TYPES_H
#define _KERNEL_THREAD_TYPES_H
#include <ktypes.h>
#include <cbuf.h>
#include <vm.h>
#include <smp.h>
@ -100,6 +100,8 @@ struct team {
struct list list;
uint32 count;
int32 wait_for_any; /* count of wait_for_child() that wait for any child */
bigtime_t kernel_time;
bigtime_t user_time;
} dead_children;
struct vm_address_space *aspace;
struct vm_address_space *kaspace;
@ -108,6 +110,9 @@ struct team {
struct thread *thread_list;
struct list image_list;
struct arch_team arch_info;
bigtime_t dead_threads_kernel_time;
bigtime_t dead_threads_user_time;
};
typedef int32 (*thread_entry_func)(thread_func, void *);