https://github.com/halide/Halide
Raw File
Tip revision: 6004e5f798e603cf346a145eecb3268136589d63 authored by Andrew Adams on 19 July 2023, 16:47:18 UTC
Don't link to cudart or opencl library. These are loaded dynamically when required.
Tip revision: 6004e5f
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