https://github.com/halide/Halide
Raw File
Tip revision: fbabe0603bd1a8a21c260220491520856882f248 authored by Z Stern on 25 April 2018, 21:50:06 UTC
Strengthen memory ordering in word_lock per errors reports from
Tip revision: fbabe06
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