mirror of
https://github.com/nillerusr/source-engine.git
synced 2024-12-22 14:16:50 +00:00
32 lines
558 B
C
32 lines
558 B
C
|
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||
|
//
|
||
|
// Purpose:
|
||
|
//
|
||
|
//=============================================================================
|
||
|
|
||
|
#ifndef ENGINETHREADS_H
|
||
|
#define ENGINETHREADS_H
|
||
|
|
||
|
#include "tier0/threadtools.h"
|
||
|
#include "const.h"
|
||
|
|
||
|
#if defined( _WIN32 )
|
||
|
#pragma once
|
||
|
#endif
|
||
|
|
||
|
#ifdef SOURCE_MT
|
||
|
|
||
|
extern bool g_bThreadedEngine;
|
||
|
extern int g_nMaterialSystemThread;
|
||
|
extern int g_nServerThread;
|
||
|
|
||
|
#define IsEngineThreaded() (g_bThreadedEngine)
|
||
|
|
||
|
#else
|
||
|
|
||
|
#define IsEngineThreaded() (false)
|
||
|
|
||
|
#endif
|
||
|
|
||
|
#endif // ENGINETHREADS_H
|