https://github.com/halide/Halide
Raw File
Tip revision: 04bd712277ad6fbb595661663d12cc1acc39b29d authored by Ahmed Taei on 05 March 2019, 23:04:43 UTC
Merge branch 'master' into ataei-implicit_lhs_vars
Tip revision: 04bd712
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