https://github.com/halide/Halide
Raw File
Tip revision: 37a0d771d87bda71b6992621d9db13dbdaaa0693 authored by Andrew Adams on 06 May 2021, 21:16:35 UTC
Use a VectorReduce not to determine if any lanes are true in Hexagon backend
Tip revision: 37a0d77
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);

extern "C" WEAK void halide_thread_yield() {
    Sleep(0);
}
back to top