Commit 86fc30c1 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

include: Add YieldProcessor().

parent a3c295d4
......@@ -7154,6 +7154,19 @@ static FORCEINLINE void MemoryBarrier(void)
#endif /* __GNUC__ */
static FORCEINLINE void YieldProcessor(void)
{
#ifdef __GNUC__
#if defined(__i386__) || defined(__x86_64__)
__asm__ __volatile__( "rep; nop" : : : "memory" );
#elif defined(__arm__) || defined(__aarch64__)
__asm__ __volatile__( "dmb ishst\n\tyield" : : : "memory" );
#else
__asm__ __volatile__( "" : : : "memory" );
#endif
#endif
}
#ifdef __cplusplus
}
#endif
......
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