BVB Source Codes

CRYENGINE Show NetworkStallTicker.h Source code

Return Download CRYENGINE: download NetworkStallTicker.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. #ifndef __NETWORK_STALL_TICKER_H__
  4. #define __NETWORK_STALL_TICKER_H__
  5.  
  6. #pragma once
  7.  
  8. //--------------------------------------------------------------------------
  9. // a special ticker thread to run during load and unload of levels
  10.  
  11. #ifdef USE_NETWORK_STALL_TICKER_THREAD
  12.  
  13.         #include <CrySystem/ISystem.h>
  14.         #include <CrySystem/ICmdLine.h>
  15.  
  16.         #include <CryGame/IGameFramework.h>
  17.         #include <CryThreading/IThreadManager.h>
  18.  
  19. class CNetworkStallTickerThread : public IThread  //in multiplayer mode
  20. {
  21. public:
  22.         CNetworkStallTickerThread()
  23.         {
  24.                 m_threadRunning = true;
  25.         }
  26.  
  27.         // Start accepting work on thread
  28.         virtual void ThreadEntry();
  29.  
  30.         // Signals the thread that it should not accept anymore work and exit
  31.         void SignalStopWork()
  32.         {
  33.                 m_threadRunning = false;
  34.         }
  35.  
  36. private:
  37.         volatile bool m_threadRunning;
  38. };
  39.  
  40. #endif // #ifdef USE_NETWORK_STALL_TICKER_THREAD
  41. //--------------------------------------------------------------------------
  42.  
  43. #endif
  44.  
downloadNetworkStallTicker.h Source code - Download CRYENGINE Source code
Related Source Codes/Software:
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top