![]() |
Shadowrun: Awakened 29 September 2011 - Build 871
|
#include <SphynxServer.hpp>
Inheritance diagram for cat::sphynx::ServerTimer: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 |
Definition at line 206 of file SphynxServer.hpp.
| cat::sphynx::ServerTimer::ServerTimer | ( | Map * | conn_map, |
| ServerWorker ** | workers, | ||
| int | worker_count | ||
| ) |
| virtual cat::sphynx::ServerTimer::~ServerTimer | ( | ) | [virtual] |
| 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; }
Map::Slot* cat::sphynx::ServerTimer::_active_head [protected] |
Definition at line 220 of file SphynxServer.hpp.
Map* cat::sphynx::ServerTimer::_conn_map [protected] |
Definition at line 209 of file SphynxServer.hpp.
Map::Slot* cat::sphynx::ServerTimer::_insert_head [protected] |
Definition at line 216 of file SphynxServer.hpp.
Mutex cat::sphynx::ServerTimer::_insert_lock [protected] |
Definition at line 217 of file SphynxServer.hpp.
WaitableFlag cat::sphynx::ServerTimer::_kill_flag [protected] |
Definition at line 238 of file SphynxServer.hpp.
int cat::sphynx::ServerTimer::_worker_count [protected] |
Definition at line 213 of file SphynxServer.hpp.
ServerWorker** cat::sphynx::ServerTimer::_workers [protected] |
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.
Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.