MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / mi_atomic_yield

Function mi_atomic_yield

3rd/mimalloc-2.0.9/include/mimalloc-atomic.h:281–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279#if defined(__cplusplus)
280#include <thread>
281static inline void mi_atomic_yield(void) {
282 std::this_thread::yield();
283}
284#elif defined(_WIN32)
285#define WIN32_LEAN_AND_MEAN
286#include <windows.h>

Callers 4

Calls

no outgoing calls

Tested by

no test coverage detected