https://github.com/halide/Halide
Raw File
Tip revision: 00a0715809e7337e189d0f7598e0431310b0c1ec authored by dsharletg on 15 November 2021, 21:33:21 UTC
Add hacky fix for losing global variables.
Tip revision: 00a0715
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