Shadowrun: Awakened 29 September 2011 - Build 871
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
cat::sphynx::ServerTimer Class Reference

#include <SphynxServer.hpp>

Inheritance diagram for cat::sphynx::ServerTimer:

List of all members.

Public Member Functions

void InsertSlot (Map::Slot *slot)
 ServerTimer (Map *conn_map, ServerWorker **workers, int worker_count)
CAT_INLINE bool Valid ()
virtual ~ServerTimer ()

Protected Member Functions

bool ThreadFunction (void *param)
CAT_INLINE void Tick (ThreadPoolLocalStorage *tls)

Protected Attributes

Map::Slot_active_head
Map_conn_map
Map::Slot_insert_head
Mutex _insert_lock
WaitableFlag _kill_flag
int _worker_count
ServerWorker ** _workers

Static Protected Attributes

static const int TIMER_THREAD_KILL_TIMEOUT = 10000

Detailed Description

Definition at line 206 of file SphynxServer.hpp.


Constructor & Destructor Documentation

cat::sphynx::ServerTimer::ServerTimer ( Map conn_map,
ServerWorker **  workers,
int  worker_count 
)
virtual cat::sphynx::ServerTimer::~ServerTimer ( ) [virtual]

Member Function Documentation

void cat::sphynx::ServerTimer::InsertSlot ( Map::Slot slot)
bool cat::sphynx::ServerTimer::ThreadFunction ( void *  param) [protected, virtual]

Implements cat::Thread.

CAT_INLINE void cat::sphynx::ServerTimer::Tick ( ThreadPoolLocalStorage tls) [protected]
CAT_INLINE bool cat::sphynx::ServerTimer::Valid ( ) [inline]

Definition at line 226 of file SphynxServer.hpp.

{ return _worker_count > 0; }

Member Data Documentation

Definition at line 220 of file SphynxServer.hpp.

Definition at line 209 of file SphynxServer.hpp.

Definition at line 216 of file SphynxServer.hpp.

Definition at line 217 of file SphynxServer.hpp.

Definition at line 238 of file SphynxServer.hpp.

Definition at line 213 of file SphynxServer.hpp.

Definition at line 212 of file SphynxServer.hpp.

const int cat::sphynx::ServerTimer::TIMER_THREAD_KILL_TIMEOUT = 10000 [static, protected]

Definition at line 236 of file SphynxServer.hpp.


The documentation for this class was generated from the following file:

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net