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

Function YieldThread

Source/ThirdParty/tracy/common/TracyYield.hpp:13–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11{
12
13static tracy_force_inline void YieldThread()
14{
15#if defined __SSE2__ || defined _M_AMD64 || (defined _M_IX86_FP && _M_IX86_FP == 2)
16 _mm_pause();
17#elif defined __aarch64__
18 asm volatile( "isb" : : );
19#else
20 std::this_thread::yield();
21#endif
22}
23
24}
25

Callers 4

InitRpmallocPlumbingFunction · 0.85
TracyProfiler.cppFile · 0.85
WorkerMethod · 0.85
WaitForQueryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected