medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit c049fb4cf16a1ecef42ed7858200ec9fb5d4270e
parent 62cf6b0264ab8fe58a4b9d89fe7f29ff178b801c
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Thu Sep 15 02:06:12 +0100

Fix relacy build

Diffstat:
platform_thread.h | 9+++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/platform_thread.h b/platform_thread.h @@ -1,9 +1,14 @@ #ifndef _PLATFORM_THREAD_H_ #define _PLATFORM_THREAD_H_ -#if defined( __linux__ ) || defined( __APPLE__ ) +#include "platform.h" + +#if PLATFORM_RELACY +// TODO: while( !go ) thread_yield(); should be turned into rl::backoff bo; while( !go ) bo.yield(); +#define thread_yield() +#elif PLATFORM_UNIX #include "unix_thread.h" -#elif defined( _WIN32 ) +#elif PLATFORM_WINDOWS #include "win32_thread.h" #else #error new platform