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,83 +14,73 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
//FIXME: sort this out somehow
|
//FIXME: sort this out somehow. IAI: Sorted in new header branch
|
||||||
#define PCRITICAL_SECTION PVOID
|
#define PRTL_CRITICAL_SECTION PVOID
|
||||||
#define LPCRITICAL_SECTION PVOID
|
|
||||||
|
|
||||||
/* FUNCTIONS *****************************************************************/
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
/*
|
NTSTATUS
|
||||||
* @implemented
|
STDCALL
|
||||||
*/
|
RtlDeleteCriticalSection(
|
||||||
VOID STDCALL
|
PRTL_CRITICAL_SECTION CriticalSection)
|
||||||
RtlDeleteCriticalSection(PCRITICAL_SECTION CriticalSection)
|
|
||||||
{
|
{
|
||||||
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
DWORD
|
||||||
* @implemented
|
STDCALL
|
||||||
*/
|
|
||||||
DWORD STDCALL
|
|
||||||
RtlSetCriticalSectionSpinCount(
|
RtlSetCriticalSectionSpinCount(
|
||||||
LPCRITICAL_SECTION CriticalSection,
|
PRTL_CRITICAL_SECTION CriticalSection,
|
||||||
DWORD SpinCount
|
DWORD SpinCount
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NTSTATUS
|
||||||
/*
|
STDCALL
|
||||||
* @implemented
|
RtlEnterCriticalSection(
|
||||||
*/
|
PRTL_CRITICAL_SECTION CriticalSection)
|
||||||
VOID STDCALL
|
|
||||||
RtlEnterCriticalSection(PCRITICAL_SECTION CriticalSection)
|
|
||||||
{
|
{
|
||||||
ExAcquireFastMutex((PFAST_MUTEX) CriticalSection );
|
ExAcquireFastMutex((PFAST_MUTEX) CriticalSection);
|
||||||
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NTSTATUS
|
||||||
/*
|
STDCALL
|
||||||
* @implemented
|
RtlInitializeCriticalSection(
|
||||||
*/
|
PRTL_CRITICAL_SECTION CriticalSection)
|
||||||
NTSTATUS STDCALL
|
|
||||||
RtlInitializeCriticalSection(PCRITICAL_SECTION CriticalSection)
|
|
||||||
{
|
{
|
||||||
ExInitializeFastMutex((PFAST_MUTEX)CriticalSection );
|
ExInitializeFastMutex((PFAST_MUTEX)CriticalSection );
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NTSTATUS
|
||||||
/*
|
STDCALL
|
||||||
* @implemented
|
RtlLeaveCriticalSection(
|
||||||
*/
|
PRTL_CRITICAL_SECTION CriticalSection)
|
||||||
VOID STDCALL
|
|
||||||
RtlLeaveCriticalSection(PCRITICAL_SECTION CriticalSection)
|
|
||||||
{
|
{
|
||||||
ExReleaseFastMutex((PFAST_MUTEX) CriticalSection );
|
ExReleaseFastMutex((PFAST_MUTEX) CriticalSection );
|
||||||
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
BOOLEAN
|
||||||
* @implemented
|
STDCALL
|
||||||
*/
|
RtlTryEnterCriticalSection(
|
||||||
BOOLEAN STDCALL
|
PRTL_CRITICAL_SECTION CriticalSection)
|
||||||
RtlTryEnterCriticalSection(PCRITICAL_SECTION CriticalSection)
|
|
||||||
{
|
{
|
||||||
return ExTryToAcquireFastMutex((PFAST_MUTEX) CriticalSection );
|
return ExTryToAcquireFastMutex((PFAST_MUTEX) CriticalSection );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
NTSTATUS
|
||||||
* @implemented
|
STDCALL
|
||||||
*/
|
RtlInitializeCriticalSectionAndSpinCount(
|
||||||
NTSTATUS STDCALL
|
PRTL_CRITICAL_SECTION CriticalSection,
|
||||||
RtlInitializeCriticalSectionAndSpinCount (
|
ULONG SpinCount)
|
||||||
PCRITICAL_SECTION CriticalSection,
|
|
||||||
ULONG SpinCount)
|
|
||||||
{
|
{
|
||||||
ExInitializeFastMutex((PFAST_MUTEX)CriticalSection );
|
ExInitializeFastMutex((PFAST_MUTEX)CriticalSection );
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
|
Loading…
Reference in a new issue