https://github.com/halide/Halide
Raw File
Tip revision: f6779bd565fdd8e8e845a418e9c5900f0b4b181a authored by Ron Lieberman on 21 June 2018, 15:06:08 UTC
Move host_malloc_deinit inside destructor
Tip revision: f6779bd
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