]>
Commit | Line | Data |
---|---|---|
1c79356b | 1 | /* |
9bccf70c | 2 | * Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved. |
1c79356b A |
3 | * |
4 | * @APPLE_LICENSE_HEADER_START@ | |
5 | * | |
de355530 A |
6 | * The contents of this file constitute Original Code as defined in and |
7 | * are subject to the Apple Public Source License Version 1.1 (the | |
8 | * "License"). You may not use this file except in compliance with the | |
9 | * License. Please obtain a copy of the License at | |
10 | * http://www.apple.com/publicsource and read it before using this file. | |
1c79356b | 11 | * |
de355530 A |
12 | * This Original Code and all software distributed under the License are |
13 | * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
1c79356b A |
14 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, |
15 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
de355530 A |
16 | * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the |
17 | * License for the specific language governing rights and limitations | |
18 | * under the License. | |
1c79356b A |
19 | * |
20 | * @APPLE_LICENSE_HEADER_END@ | |
21 | */ | |
22 | /* | |
23 | * @OSF_COPYRIGHT@ | |
24 | */ | |
1c79356b A |
25 | /* |
26 | * Mach Operating System | |
27 | * Copyright (c) 1991,1990,1989,1988 Carnegie Mellon University | |
28 | * All Rights Reserved. | |
29 | * | |
30 | * Permission to use, copy, modify and distribute this software and its | |
31 | * documentation is hereby granted, provided that both the copyright | |
32 | * notice and this permission notice appear in all copies of the | |
33 | * software, derivative works or modified versions, and any portions | |
34 | * thereof, and that both notices appear in supporting documentation. | |
35 | * | |
36 | * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" | |
37 | * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR | |
38 | * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. | |
39 | * | |
40 | * Carnegie Mellon requests users of this software to return to | |
41 | * | |
42 | * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU | |
43 | * School of Computer Science | |
44 | * Carnegie Mellon University | |
45 | * Pittsburgh PA 15213-3890 | |
46 | * | |
47 | * any improvements or extensions that they make and grant Carnegie Mellon | |
48 | * the rights to redistribute these changes. | |
49 | */ | |
50 | /* | |
51 | */ | |
52 | /* | |
53 | * File: mach/thread_status.h | |
54 | * Author: Avadis Tevanian, Jr. | |
55 | * | |
56 | * This file contains the structure definitions for the user-visible | |
57 | * thread state. This thread state is examined with the thread_get_state | |
58 | * kernel call and may be changed with the thread_set_state kernel call. | |
59 | * | |
60 | */ | |
61 | ||
62 | #ifndef THREAD_STATUS_H_ | |
63 | #define THREAD_STATUS_H_ | |
64 | ||
65 | /* | |
66 | * The actual structure that comprises the thread state is defined | |
67 | * in the machine dependent module. | |
68 | */ | |
69 | #include <mach/machine/vm_types.h> | |
70 | #include <mach/machine/thread_status.h> | |
71 | #include <mach/machine/thread_state.h> | |
72 | ||
73 | /* | |
74 | * Generic definition for machine-dependent thread status. | |
75 | */ | |
76 | ||
77 | typedef natural_t *thread_state_t; /* Variable-length array */ | |
78 | ||
79 | /* THREAD_STATE_MAX is now defined in <mach/machine/thread_state.h> */ | |
80 | typedef int thread_state_data_t[THREAD_STATE_MAX]; | |
81 | ||
82 | #define THREAD_STATE_FLAVOR_LIST 0 /* List of valid flavors */ | |
83 | ||
84 | typedef int thread_state_flavor_t; | |
85 | typedef thread_state_flavor_t *thread_state_flavor_array_t; | |
86 | ||
87 | #endif /* THREAD_STATUS_H_ */ |