https://github.com/halide/Halide
Raw File
Tip revision: 6fb22ae2bf89ca644009d9954ba83938cd1fbb10 authored by Alex Reinking on 05 January 2022, 22:07:14 UTC
Bump version to 13.0.3
Tip revision: 6fb22ae
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