https://github.com/halide/Halide
Raw File
Tip revision: 5a17e84395c19570e9e4a6a25df39b4892a65ee5 authored by Steven Johnson on 12 March 2019, 01:42:35 UTC
Sketch of float16 support for Generator (Issue #3709)
Tip revision: 5a17e84
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