https://github.com/halide/Halide
Raw File
Tip revision: cad87b7aaac4b2725b66f4f89d70d536d4ea11fa authored by Steven Johnson on 01 August 2022, 17:10:27 UTC
Fix
Tip revision: cad87b7
windows_yield.cpp
#include "runtime_internal.h"

#ifdef BITS_64
#define WIN32API
#else
#define WIN32API __stdcall
#endif

extern "C" WIN32API int32_t Sleep(int32_t timeout);

extern "C" WEAK void halide_thread_yield() {
    Sleep(0);
}
back to top