https://github.com/halide/Halide
Raw File
Tip revision: 8d9f859f30c716b4dc9df0ede65e6d3170077167 authored by Steven Johnson on 17 November 2022, 22:30:47 UTC
Merge branch 'srj/halide_fopen' into srj/fopen-fix
Tip revision: 8d9f859
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