4 #if !defined(lint) && !defined(LOCORE) && defined(RCS_HDRS)
5 static char *rcsidpreempt
= "$Header$";
9 ****************************************************************************
10 * Copyright IBM Corporation 1988, 1989 - All Rights Reserved *
12 * Permission to use, copy, modify, and distribute this software and its *
13 * documentation for any purpose and without fee is hereby granted, *
14 * provided that the above copyright notice appear in all copies and *
15 * that both that copyright notice and this permission notice appear in *
16 * supporting documentation, and that the name of IBM not be used in *
17 * advertising or publicity pertaining to distribution of the software *
18 * without specific, written prior permission. *
20 * IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL *
21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL IBM *
22 * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY *
23 * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER *
24 * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING *
25 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. *
26 ****************************************************************************
29 /*******************************************************************\
31 * Information Technology Center *
32 * Carnegie-Mellon University *
34 * Bradley White and M. Satyanarayanan *
35 \*******************************************************************/
38 #define PRE_PreemptMe() lwp_cpptr->level = 0
39 #define PRE_BeginCritical() lwp_cpptr->level++
40 #define PRE_EndCritical() lwp_cpptr->level--
42 #define DEFAULTSLICE 10
44 int PRE_InitPreempt(struct timeval
*);
45 int PRE_EndPreempt(void);
47 extern char PRE_Block
;