mirror of https://github.com/lianthony/NT4.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
866 B
53 lines
866 B
/*++
|
|
|
|
Copyright (c) 1991 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
critical.c
|
|
|
|
Abstract:
|
|
|
|
This module contains the critical section support code.
|
|
|
|
Author:
|
|
|
|
Garth Conboy Initial Coding
|
|
Nikhil Kamkolkar Rewritten for microsoft coding style. mpized
|
|
|
|
Revision History:
|
|
|
|
|
|
--*/
|
|
|
|
|
|
#include "atalk.h"
|
|
|
|
#if not defined(EnterCriticalSection)
|
|
void EnterCriticalSection(void)
|
|
{
|
|
#if Iam a WindowsNT
|
|
EnterCriticalSectionNt();
|
|
#else
|
|
#error "Need EnterCriticalSection() definition."
|
|
#endif
|
|
|
|
return;
|
|
|
|
} // EnterCriticalSection
|
|
#endif
|
|
|
|
#if not defined(LeaveCriticalSection)
|
|
void LeaveCriticalSection(void)
|
|
{
|
|
|
|
#if Iam a WindowsNT
|
|
LeaveCriticalSectionNt();
|
|
#else
|
|
#error "Need LeaveCriticalSection() definition."
|
|
#endif
|
|
|
|
return;
|
|
|
|
}
|
|
#endif // LeaveCriticalSection
|