https://github.com/halide/Halide
Raw File
Tip revision: 69d8ef0366ffd28ef88103b0443c2fd1c4487507 authored by Alex Reinking on 30 October 2021, 01:33:50 UTC
Bump version to Halide 14.0.0 (#6369)
Tip revision: 69d8ef0
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