https://github.com/halide/Halide
Raw File
Tip revision: 412a0a4e3876021e541e40b6c9139a3b6bfd2c04 authored by Steven Johnson on 08 December 2021, 01:58:10 UTC
Minor tweaks to generate_closure_ir()
Tip revision: 412a0a4
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