https://github.com/halide/Halide
Raw File
Tip revision: a1df45d0cb06e191243854dcb04a476136c3acc2 authored by Steven Johnson on 19 November 2021, 20:53:32 UTC
Sketch of AOT-compiled performance tests
Tip revision: a1df45d
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