2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
10 #if !defined(lint) && !defined(LOCORE) && defined(RCS_HDRS)
12 /*******************************************************************\
14 * Information Technology Center *
15 * Carnegie-Mellon University *
17 \*******************************************************************/
20 #if defined( _WIN32) || defined(AFS_LINUX20_ENV)
21 /* preemption not implemented for win32. Use threads instead. */
22 #define PRE_InitPreempt(A)
23 #define PRE_PreemptMe()
24 #define PRE_BeginCritical()
25 #define PRE_EndCritical()
27 #define PRE_PreemptMe() lwp_cpptr->level = 0
28 #define PRE_BeginCritical() lwp_cpptr->level++
29 #define PRE_EndCritical() lwp_cpptr->level--
32 #define DEFAULTSLICE 10