https://github.com/halide/Halide
Raw File
Tip revision: c1fb3e0624640c6dfe41080ce5263396f57684ef authored by Volodymyr Kysenko on 18 November 2021, 17:59:17 UTC
Comment
Tip revision: c1fb3e0
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