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
11 #include <afs/param.h>
15 #include "TaAfsAdmSvrClientInternal.h"
19 * VARIABLES __________________________________________________________________
25 LPCRITICAL_SECTION pcs;
30 * ROUTINES ___________________________________________________________________
34 void ADMINAPI asc_Enter (void)
38 l.pcs = New (CRITICAL_SECTION);
39 InitializeCriticalSection (l.pcs);
41 EnterCriticalSection (l.pcs);
45 void ADMINAPI asc_Leave (void)
47 LeaveCriticalSection (l.pcs);
51 LPCRITICAL_SECTION ADMINAPI asc_GetCriticalSection (void)
55 l.pcs = New (CRITICAL_SECTION);
56 InitializeCriticalSection (l.pcs);