2 * Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
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.
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
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
20 * @APPLE_LICENSE_HEADER_END@
26 * Mach Operating System
27 * Copyright (c) 1991,1990,1989,1988 Carnegie Mellon University
28 * All Rights Reserved.
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.
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.
40 * Carnegie Mellon requests users of this software to return to
42 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
43 * School of Computer Science
44 * Carnegie Mellon University
45 * Pittsburgh PA 15213-3890
47 * any improvements or extensions that they make and grant Carnegie Mellon
48 * the rights to redistribute these changes.
53 * File: mach/thread_status.h
54 * Author: Avadis Tevanian, Jr.
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.
62 #ifndef THREAD_STATUS_H_
63 #define THREAD_STATUS_H_
66 * The actual structure that comprises the thread state is defined
67 * in the machine dependent module.
69 #include <mach/machine/vm_types.h>
70 #include <mach/machine/thread_status.h>
71 #include <mach/machine/thread_state.h>
74 * Generic definition for machine-dependent thread status.
77 typedef natural_t
*thread_state_t
; /* Variable-length array */
79 /* THREAD_STATE_MAX is now defined in <mach/machine/thread_state.h> */
80 typedef int thread_state_data_t
[THREAD_STATE_MAX
];
82 #define THREAD_STATE_FLAVOR_LIST 0 /* List of valid flavors */
84 typedef int thread_state_flavor_t
;
85 typedef thread_state_flavor_t
*thread_state_flavor_array_t
;
87 #endif /* THREAD_STATUS_H_ */