#include <APIServerThread.hpp>
Public Member Functions | |
| APIServerThread (APIServer *s, SysServerConnection *c) | |
| ~APIServerThread () | |
| void | start () |
| virtual void | dispatch () |
Public Member Functions inherited from SysThread | |
| SysThread () | |
| virtual | ~SysThread () |
| SysThread (pthread_t tID) | |
| virtual void | attachThread () |
| void | setPriority (int priority) |
| void | terminate () |
| void | startup () |
| void | shutdown () |
| void | yield () |
| uintptr_t | threadID () |
| bool | equals (SysThread &other) |
| size_t | hash () |
| SysThread () | |
| virtual | ~SysThread () |
| SysThread (thread_id_t threadID) | |
| virtual void | attachThread () |
| void | setPriority (ThreadPriority priority) |
| void | terminate () |
| void | startup () |
| void | shutdown () |
| void | yield () |
| uintptr_t | threadID () |
| bool | equals (SysThread &other) |
| size_t | hash () |
Protected Attributes | |
| APIServer * | server |
| SysServerConnection * | connection |
Protected Attributes inherited from SysThread | |
| bool | attached |
| pthread_t | _threadID |
| HANDLE | _threadHandle |
| DWORD | _threadID |
Additional Inherited Members | |
Public Types inherited from SysThread | |
| enum | ThreadPriority { LOW_PRIORITY , MEDIUM_PRIORITY , GUARDED_PRIORITY , HIGH_PRIORITY , LOW_PRIORITY , MEDIUM_PRIORITY , GUARDED_PRIORITY , HIGH_PRIORITY } |
| enum | { THREAD_STACK_SIZE = 1024*96 } |
| enum | ThreadPriority { LOW_PRIORITY , MEDIUM_PRIORITY , GUARDED_PRIORITY , HIGH_PRIORITY , LOW_PRIORITY , MEDIUM_PRIORITY , GUARDED_PRIORITY , HIGH_PRIORITY } |
| enum | { THREAD_STACK_SIZE = 1024*96 } |
Protected Member Functions inherited from SysThread | |
| void | createThread () |
| void | createThread () |
Definition at line 45 of file APIServerThread.hpp.
|
inline |
Definition at line 49 of file APIServerThread.hpp.
|
inline |
Definition at line 50 of file APIServerThread.hpp.
References SysThread::terminate().
|
virtual |
Dispatch the newly created reader thread to do it's work.
Reimplemented from SysThread.
Definition at line 53 of file APIServerThread.cpp.
References connection, APIServer::processMessages(), server, and APIServer::sessionTerminated().
| void APIServerThread::start | ( | ) |
Definition at line 45 of file APIServerThread.cpp.
References SysThread::createThread().
Referenced by APIServer::listenForConnections().
|
protected |
Definition at line 57 of file APIServerThread.hpp.
Referenced by dispatch().
|
protected |
Definition at line 56 of file APIServerThread.hpp.
Referenced by dispatch().