Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
561 B

  1. //========== Copyright � 2005, Valve Corporation, All rights reserved. ========
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef ENGINETHREADS_H
  7. #define ENGINETHREADS_H
  8. #include "tier0/threadtools.h"
  9. #include "const.h"
  10. #if defined( _WIN32 )
  11. #pragma once
  12. #endif
  13. #ifdef SOURCE_MT
  14. extern bool g_bThreadedEngine;
  15. extern int g_nMaterialSystemThread;
  16. extern int g_nServerThread;
  17. #define IsEngineThreaded() (g_bThreadedEngine)
  18. #else
  19. #define IsEngineThreaded() (false)
  20. #endif
  21. #endif // ENGINETHREADS_H