MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / InterlockedExchange

Function InterlockedExchange

Source/Engine/Platform/Web/WebPlatform.h:42–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 __builtin_prefetch(static_cast<char const*>(ptr));
41 }
42 FORCE_INLINE static int64 InterlockedExchange(int64 volatile* dst, int64 exchange)
43 {
44 return __sync_lock_test_and_set(dst, exchange);
45 }
46 FORCE_INLINE static int32 InterlockedCompareExchange(int32 volatile* dst, int32 exchange, int32 comperand)
47 {
48 return __sync_val_compare_and_swap(dst, comperand, exchange);

Callers 3

enet_at_atomic_writeFunction · 0.50
ClearMethod · 0.50
InitMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected