https://github.com/halide/Halide
Raw File
Tip revision: ed1a5ddade80e7c2a73f723c83e5fbabc0beca32 authored by Steven Johnson on 28 November 2023, 15:22:03 UTC
Merge branch 'main' into abadams/fix_7811
Tip revision: ed1a5dd
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