APIServerThread Class Reference

#include <APIServerThread.hpp>

Inheritance diagram for APIServerThread:
[legend]

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

APIServerserver
 
SysServerConnectionconnection
 
- 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 ()
 

Detailed Description

Definition at line 45 of file APIServerThread.hpp.

Constructor & Destructor Documentation

◆ APIServerThread()

APIServerThread::APIServerThread ( APIServer s,
SysServerConnection c 
)
inline

Definition at line 49 of file APIServerThread.hpp.

◆ ~APIServerThread()

APIServerThread::~APIServerThread ( )
inline

Definition at line 50 of file APIServerThread.hpp.

References SysThread::terminate().

Member Function Documentation

◆ dispatch()

void APIServerThread::dispatch ( )
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().

◆ start()

void APIServerThread::start ( )

Definition at line 45 of file APIServerThread.cpp.

References SysThread::createThread().

Referenced by APIServer::listenForConnections().

Member Data Documentation

◆ connection

SysServerConnection* APIServerThread::connection
protected

Definition at line 57 of file APIServerThread.hpp.

Referenced by dispatch().

◆ server

APIServer* APIServerThread::server
protected

Definition at line 56 of file APIServerThread.hpp.

Referenced by dispatch().


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