hal: Implement ExTryToAcquireFastMutex().

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2019-01-29 22:01:47 -06:00 committed by Alexandre Julliard
parent 3d5b2a0d87
commit ec5edb4fc0
1 changed files with 4 additions and 3 deletions

View File

@ -81,10 +81,11 @@ void WINAPI DECLSPEC_HIDDEN __regs_ExReleaseFastMutex( FAST_MUTEX *mutex )
}
DEFINE_FASTCALL1_ENTRYPOINT( ExTryToAcquireFastMutex )
BOOLEAN WINAPI DECLSPEC_HIDDEN __regs_ExTryToAcquireFastMutex(PFAST_MUTEX FastMutex)
BOOLEAN WINAPI DECLSPEC_HIDDEN __regs_ExTryToAcquireFastMutex( FAST_MUTEX *mutex )
{
FIXME("(%p) stub\n", FastMutex);
return TRUE;
TRACE("mutex %p.\n", mutex);
return (InterlockedCompareExchange( &mutex->Count, 0, 1 ) == 1);
}
DEFINE_FASTCALL1_ENTRYPOINT( KfAcquireSpinLock )