home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / amiga / os / kludge03.tz / kludge03 / mk74 / user / threads / options.h < prev    next >
Text File  |  1991-05-15  |  3KB  |  91 lines

  1. /* 
  2.  * Mach Operating System
  3.  * Copyright (c) 1991,1990,1989 Carnegie Mellon University
  4.  * All Rights Reserved.
  5.  * 
  6.  * Permission to use, copy, modify and distribute this software and its
  7.  * documentation is hereby granted, provided that both the copyright
  8.  * notice and this permission notice appear in all copies of the
  9.  * software, derivative works or modified versions, and any portions
  10.  * thereof, and that both notices appear in supporting documentation.
  11.  * 
  12.  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
  13.  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
  14.  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
  15.  * 
  16.  * Carnegie Mellon requests users of this software to return to
  17.  * 
  18.  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
  19.  *  School of Computer Science
  20.  *  Carnegie Mellon University
  21.  *  Pittsburgh PA 15213-3890
  22.  * 
  23.  * any improvements or extensions that they make and grant Carnegie Mellon
  24.  * the rights to redistribute these changes.
  25.  */
  26. /*
  27.  * HISTORY
  28.  * $Log:    options.h,v $
  29.  * Revision 2.8  91/05/14  17:58:35  mrt
  30.  *     Correcting copyright
  31.  * 
  32.  * Revision 2.7  91/02/14  14:21:03  mrt
  33.  *     Added new Mach copyright
  34.  *     [91/02/13  12:41:31  mrt]
  35.  * 
  36.  * Revision 2.6  90/09/09  14:35:04  rpd
  37.  *     Remove special option , debug_mutex and thread_calls.
  38.  *     [90/08/24            rwd]
  39.  * 
  40.  * Revision 2.5  90/06/02  15:14:14  rpd
  41.  *     Removed RCS Source, Header lines.
  42.  *     [90/05/03  00:07:27  rpd]
  43.  * 
  44.  * Revision 2.4  90/03/14  21:12:15  rwd
  45.  *     Added new option:
  46.  *         WAIT_DEBUG:    keep track of who a blocked thread is
  47.  *                 waiting for.
  48.  *     [90/03/01            rwd]
  49.  * 
  50.  * Revision 2.3  90/01/19  14:37:25  rwd
  51.  *     New option:
  52.  *         THREAD_CALLS:    cthread_* version of thread_* calls.
  53.  *     [90/01/03            rwd]
  54.  * 
  55.  * Revision 2.2  89/12/08  19:54:09  rwd
  56.  *     Added code:
  57.  *         MUTEX_SPECIAL:    Have extra kernel threads available for
  58.  *                 special mutexes to avoid deadlocks
  59.  *     Removed options:
  60.  *         MSGOPT, RECEIVE_YIELD
  61.  *     [89/11/25            rwd]
  62.  *     Added option:
  63.  *         MUTEX_SPECIAL:    Allow special mutexes which will
  64.  *                 garuntee the resulting threads runs
  65.  *                 on a mutex_unlock
  66.  *     [89/11/21            rwd]
  67.  *     Options added are:
  68.  *         STATISTICS:    collect [kernel/c]thread state stats.
  69.  *         SPIN_RESCHED:    call swtch_pri(0) when spin will block.
  70.  *         MSGOPT:        try to minimize message sends
  71.  *         CHECK_STATUS:    check status of mach calls
  72.  *         RECEIVE_YIELD:    yield thread if no waiting threads after
  73.  *                 cthread_msg_receive
  74.  *         RED_ZONE:    make redzone at end of stacks
  75.  *         DEBUG_MUTEX:    in conjunction with same in cthreads.h
  76.  *                 use slow mutex with held=cproc_self().
  77.  *     [89/11/13            rwd]
  78.  *     Added copyright.  Removed all options.
  79.  *     [89/10/23            rwd]
  80.  * 
  81.  */
  82. /*
  83.  * options.h
  84.  */
  85.  
  86. /*#define STATISTICS*/
  87. #define SPIN_RESCHED
  88. /*#define CHECK_STATUS*/
  89. /*#define RED_ZONE*/
  90. #define WAIT_DEBUG
  91.