mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Fix RtlCriticalSection dummy calls in ntoskrnl's libsupp, for consistency with previous patch and correctness of types.
svn path=/trunk/; revision=12771
This commit is contained in:
parent
57cef8643d
commit
abd7686a78
1 changed files with 38 additions and 48 deletions
|
@ -14,79 +14,69 @@
|
|||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
//FIXME: sort this out somehow
|
||||
#define PCRITICAL_SECTION PVOID
|
||||
#define LPCRITICAL_SECTION PVOID
|
||||
//FIXME: sort this out somehow. IAI: Sorted in new header branch
|
||||
#define PRTL_CRITICAL_SECTION PVOID
|
||||
|
||||
/* FUNCTIONS *****************************************************************/
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
VOID STDCALL
|
||||
RtlDeleteCriticalSection(PCRITICAL_SECTION CriticalSection)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlDeleteCriticalSection(
|
||||
PRTL_CRITICAL_SECTION CriticalSection)
|
||||
{
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
DWORD STDCALL
|
||||
DWORD
|
||||
STDCALL
|
||||
RtlSetCriticalSectionSpinCount(
|
||||
LPCRITICAL_SECTION CriticalSection,
|
||||
PRTL_CRITICAL_SECTION CriticalSection,
|
||||
DWORD SpinCount
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
VOID STDCALL
|
||||
RtlEnterCriticalSection(PCRITICAL_SECTION CriticalSection)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlEnterCriticalSection(
|
||||
PRTL_CRITICAL_SECTION CriticalSection)
|
||||
{
|
||||
ExAcquireFastMutex((PFAST_MUTEX) CriticalSection );
|
||||
ExAcquireFastMutex((PFAST_MUTEX) CriticalSection);
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
NTSTATUS STDCALL
|
||||
RtlInitializeCriticalSection(PCRITICAL_SECTION CriticalSection)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlInitializeCriticalSection(
|
||||
PRTL_CRITICAL_SECTION CriticalSection)
|
||||
{
|
||||
ExInitializeFastMutex((PFAST_MUTEX)CriticalSection );
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
VOID STDCALL
|
||||
RtlLeaveCriticalSection(PCRITICAL_SECTION CriticalSection)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlLeaveCriticalSection(
|
||||
PRTL_CRITICAL_SECTION CriticalSection)
|
||||
{
|
||||
ExReleaseFastMutex((PFAST_MUTEX) CriticalSection );
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
BOOLEAN STDCALL
|
||||
RtlTryEnterCriticalSection(PCRITICAL_SECTION CriticalSection)
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
RtlTryEnterCriticalSection(
|
||||
PRTL_CRITICAL_SECTION CriticalSection)
|
||||
{
|
||||
return ExTryToAcquireFastMutex((PFAST_MUTEX) CriticalSection );
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
NTSTATUS STDCALL
|
||||
RtlInitializeCriticalSectionAndSpinCount (
|
||||
PCRITICAL_SECTION CriticalSection,
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlInitializeCriticalSectionAndSpinCount(
|
||||
PRTL_CRITICAL_SECTION CriticalSection,
|
||||
ULONG SpinCount)
|
||||
{
|
||||
ExInitializeFastMutex((PFAST_MUTEX)CriticalSection );
|
||||
|
|
Loading…
Reference in a new issue