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
14 #include <afs/param.h>
18 #include "TaAfsAdmSvrClientInternal.h"
22 * VARIABLES __________________________________________________________________
28 LPCRITICAL_SECTION pcs;
33 * ROUTINES ___________________________________________________________________
37 void ADMINAPI asc_Enter (void)
41 l.pcs = New (CRITICAL_SECTION);
42 InitializeCriticalSection (l.pcs);
44 EnterCriticalSection (l.pcs);
48 void ADMINAPI asc_Leave (void)
50 LeaveCriticalSection (l.pcs);
54 LPCRITICAL_SECTION ADMINAPI asc_GetCriticalSection (void)
58 l.pcs = New (CRITICAL_SECTION);
59 InitializeCriticalSection (l.pcs);