https://github.com/halide/Halide
Raw File
Tip revision: 29196bc88a715e4aff5aa16ab6068491dbab0128 authored by Andrew Adams on 16 April 2020, 21:17:54 UTC
If a constant wildcard doesn't actually need to be constant, make it so.
Tip revision: 29196bc
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