https://github.com/halide/Halide
Raw File
Tip revision: 0973abdf426b8b3d7c0bc88aee1e44e2ec8b084b authored by Andrew Adams on 26 September 2023, 20:47:16 UTC
Add success print
Tip revision: 0973abd
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