https://github.com/halide/Halide
Raw File
Tip revision: e1f97241748e3701315cdf013be551965a94e3ef authored by Steven Johnson on 19 May 2022, 18:11:22 UTC
Revert "Revert "Add forwarders for 'name()' method for Funcs, ImageParam""
Tip revision: e1f9724
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