Commit ec5edb4f authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

hal: Implement ExTryToAcquireFastMutex().

parent 3d5b2a0d
...@@ -81,10 +81,11 @@ void WINAPI DECLSPEC_HIDDEN __regs_ExReleaseFastMutex( FAST_MUTEX *mutex ) ...@@ -81,10 +81,11 @@ void WINAPI DECLSPEC_HIDDEN __regs_ExReleaseFastMutex( FAST_MUTEX *mutex )
} }
DEFINE_FASTCALL1_ENTRYPOINT( ExTryToAcquireFastMutex ) 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); TRACE("mutex %p.\n", mutex);
return TRUE;
return (InterlockedCompareExchange( &mutex->Count, 0, 1 ) == 1);
} }
DEFINE_FASTCALL1_ENTRYPOINT( KfAcquireSpinLock ) DEFINE_FASTCALL1_ENTRYPOINT( KfAcquireSpinLock )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment