https://github.com/halide/Halide
Raw File
Tip revision: f36d75dfa828ab5a7d7ebc03f0839410d90cf7db authored by Alexander Root on 13 September 2022, 18:25:52 UTC
resolve merge conflicts
Tip revision: f36d75d
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