mirror of
https://github.com/reactos/reactos.git
synced 2024-11-09 16:20:37 +00:00
c2d0d784c7
- Create a branch to do a proper merge of USB work from a trunk base instead of from cmake-bringup - In the future, DO NOT under any circumstances branch another branch. This leads to merge problems! svn path=/branches/usb-bringup-trunk/; revision=55018
103 lines
2 KiB
C
103 lines
2 KiB
C
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS Kernel
|
|
* FILE: ntoskrnl/ex/fmutex.c
|
|
* PURPOSE: Implements fast mutexes
|
|
* PROGRAMMERS: Alex Ionescu (alex@relsoft.net)
|
|
*/
|
|
|
|
/* INCLUDES *****************************************************************/
|
|
|
|
#include <ntoskrnl.h>
|
|
#define NDEBUG
|
|
#include <debug.h>
|
|
|
|
/* Undefine some macros we implement here */
|
|
#undef ExEnterCriticalRegionAndAcquireFastMutexUnsafe
|
|
#undef ExReleaseFastMutexUnsafeAndLeaveCriticalRegion
|
|
#undef ExAcquireFastMutex
|
|
#undef ExReleaseFastMutex
|
|
#undef ExAcquireFastMutexUnsafe
|
|
#undef ExReleaseFastMutexUnsafe
|
|
#undef ExTryToAcquireFastMutex
|
|
|
|
/* PUBLIC FUNCTIONS **********************************************************/
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
VOID
|
|
FASTCALL
|
|
ExEnterCriticalRegionAndAcquireFastMutexUnsafe(IN OUT PFAST_MUTEX FastMutex)
|
|
{
|
|
/* Call the inline */
|
|
_ExEnterCriticalRegionAndAcquireFastMutexUnsafe(FastMutex);
|
|
}
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
VOID
|
|
FASTCALL
|
|
ExReleaseFastMutexUnsafeAndLeaveCriticalRegion(IN OUT PFAST_MUTEX FastMutex)
|
|
{
|
|
/* Call the inline */
|
|
_ExReleaseFastMutexUnsafeAndLeaveCriticalRegion(FastMutex);
|
|
}
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
VOID
|
|
FASTCALL
|
|
ExAcquireFastMutex(IN OUT PFAST_MUTEX FastMutex)
|
|
{
|
|
/* Call the inline */
|
|
_ExAcquireFastMutex(FastMutex);
|
|
}
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
VOID
|
|
FASTCALL
|
|
ExReleaseFastMutex(IN OUT PFAST_MUTEX FastMutex)
|
|
{
|
|
/* Call the inline */
|
|
_ExReleaseFastMutex(FastMutex);
|
|
}
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
VOID
|
|
FASTCALL
|
|
ExAcquireFastMutexUnsafe(IN OUT PFAST_MUTEX FastMutex)
|
|
{
|
|
/* Acquire the mutex unsafely */
|
|
_ExAcquireFastMutexUnsafe(FastMutex);
|
|
}
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
VOID
|
|
FASTCALL
|
|
ExReleaseFastMutexUnsafe(IN OUT PFAST_MUTEX FastMutex)
|
|
{
|
|
/* Release the mutex unsafely */
|
|
_ExReleaseFastMutexUnsafe(FastMutex);
|
|
}
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
BOOLEAN
|
|
FASTCALL
|
|
ExTryToAcquireFastMutex(IN OUT PFAST_MUTEX FastMutex)
|
|
{
|
|
/* Call the inline */
|
|
return _ExTryToAcquireFastMutex(FastMutex);
|
|
}
|
|
|
|
/* EOF */
|