home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / mach / thread_status.h < prev    next >
Text File  |  1992-07-29  |  2KB  |  75 lines

  1. /*
  2.  * Mach Operating System
  3.  * Copyright (c) 1989 Carnegie-Mellon University
  4.  * Copyright (c) 1988 Carnegie-Mellon University
  5.  * All rights reserved.  The CMU software License Agreement specifies
  6.  * the terms and conditions for use and redistribution.
  7.  */
  8. /*
  9.  * HISTORY
  10.  * $Log:    thread_status.h,v $
  11.  * Revision 2.5  89/03/09  20:24:23  rpd
  12.  *     More cleanup.
  13.  * 
  14.  * Revision 2.4  89/02/25  18:41:29  gm0w
  15.  *     Changes for cleanup.
  16.  * 
  17.  * Revision 2.3  89/02/07  00:53:47  mwyoung
  18.  * Relocated from mach/thread_status.h
  19.  * 
  20.  * Revision 2.2  88/08/25  18:21:12  mwyoung
  21.  *     Adjusted include file references.
  22.  *     [88/08/16  04:16:13  mwyoung]
  23.  *     
  24.  *     Add THREAD_STATE_FLAVOR_LIST; remove old stuff.
  25.  *     [88/08/11  18:49:48  mwyoung]
  26.  * 
  27.  *
  28.  * 15-Jan-88  David Golub (dbg) at Carnegie-!24on University
  29.  *    Replaced with variable-length array for flexibile interface.
  30.  *
  31.  * 28-Apr-87  Avadis Tevanian (avie) at Carnegie-Mellon University
  32.  *    Latest hacks to keep MiG happy wrt refarrays.
  33.  *
  34.  * 27-Mar-87  Avadis Tevanian (avie) at Carnegie-Mellon University
  35.  *    Created.
  36.  *
  37.  */
  38. /*
  39.  *    File:    mach/thread_status.h
  40.  *    Author:    Avadis Tevanian, Jr.
  41.  *
  42.  *    This file contains the structure definitions for the user-visible
  43.  *    thread state.  This thread state is examined with the thread_get_state
  44.  *    kernel call and may be changed with the thread_set_state kernel call.
  45.  *
  46.  */
  47.  
  48. #ifndef    _MACH_THREAD_STATUS_H_
  49. #define _MACH_THREAD_STATUS_H_
  50.  
  51. /*
  52.  *    The actual structure that comprises the thread state is defined
  53.  *    in the machine dependent module.
  54.  */
  55. #import <mach/machine/thread_status.h>
  56.  
  57. /*
  58.  *    Generic definition for machine-dependent thread status.
  59.  */
  60.  
  61. typedef    int        *thread_state_t;    /* Variable-length array */
  62.  
  63. #define THREAD_STATE_MAX    (1024)        /* Maximum array size */
  64. typedef    int    thread_state_data_t[THREAD_STATE_MAX];
  65.  
  66. #define THREAD_STATE_FLAVOR_LIST    0    /* List of valid flavors */
  67. #define THREAD_STATE_FLAVORS        0    /* Compat with NeXT 1.0 */
  68.  
  69. struct thread_state_flavor {
  70.     int    flavor;            /* the number for this flavor */
  71.     int    count;            /* count of ints in this flavor */
  72. };
  73.  
  74. #endif    _MACH_THREAD_STATUS_H_
  75.