https://github.com/halide/Halide
Raw File
Tip revision: 6512634130fe91f21916779e78dde245ea88aaec authored by Tzu-Mao Li on 28 October 2019, 15:19:00 UTC
Merge branch 'master' into tzumao-autodiff-boundarycond
Tip revision: 6512634
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