https://github.com/halide/Halide
Raw File
Tip revision: 0a1a77e47183888dc343eb29d1e1076e868a0ac4 authored by Alex Reinking on 15 February 2021, 23:13:55 UTC
Bump timestamp on branch to appease GitHub
Tip revision: 0a1a77e
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