https://github.com/halide/Halide
Raw File
Tip revision: 65c26cba6a3eca2d08a0bccf113ca28746012cc3 authored by Steven Johnson on 26 August 2019, 21:49:31 UTC
Merge pull request #4174 from halide/srj-tidy
Tip revision: 65c26cb
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);

namespace Halide { namespace Runtime { namespace Internal {

WEAK void halide_thread_yield() {
    Sleep(0);
}

}}}
back to top