https://github.com/halide/Halide
Raw File
Tip revision: 9f9ef4c2c4b88215d4d5a41aeb8777c9a1bdb6d1 authored by Dan Palermo on 11 January 2019, 22:42:43 UTC
HVX sysmon markers
Tip revision: 9f9ef4c
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