https://github.com/halide/Halide
Raw File
Tip revision: f7776c87d0eda3f16238595718e5f6422fb3318d authored by Andrew Adams on 06 September 2023, 17:06:20 UTC
Merge remote-tracking branch 'origin/main' into abadams/enable_f16c
Tip revision: f7776c8
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