https://github.com/halide/Halide
Raw File
Tip revision: 5deee77b677da97c4dadc966f76d8bf01d855c57 authored by Steven Johnson on 01 April 2020, 00:47:39 UTC
wip
Tip revision: 5deee77
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);
}

}  // namespace Internal
}  // namespace Runtime
}  // namespace Halide
back to top