medfall

A super great game engine
Log | Files | Refs

platform_thread.h (308B)


      1 #pragma once
      2 
      3 #include "platform.h"
      4 
      5 #if PLATFORM_RELACY
      6 // TODO: while( !go ) thread_yield(); should be turned into rl::backoff bo; while( !go ) bo.yield();
      7 #define thread_yield()
      8 #elif PLATFORM_WINDOWS
      9 #include "win32_thread.h"
     10 #elif PLATFORM_UNIX
     11 #include "unix_thread.h"
     12 #else
     13 #error new platform
     14 #endif