commit fe6ffdb2697334c5e4ad0d686baa5dbf32f6ba2b parent 7913634c1e8ac9980230d9d00b9343aff8c4d41b Author: Michael Savage <mikejsavage@gmail.com> Date: Sun Dec 18 23:16:58 +0200 thread_yield for Windows Diffstat:
win32_thread.h | | | 4 | ++++ |
diff --git a/win32_thread.h b/win32_thread.h @@ -29,4 +29,8 @@ inline u32 thread_getid() { return GetCurrentThreadId(); } +inline void thread_yield() { + SwitchToThread(); +} + #endif // _WINDOWS_THREAD_H_