#include <buf_server.h>
Inheritance diagram for NLNET::CServerTask:
Definition at line 48 of file buf_server.h.
Public Member Functions | |
void | requireExit () |
Tells the task to exit. | |
virtual | ~CServerTask () |
Destructor. | |
Data Fields | |
uint32 | NbLoop |
Protected Member Functions | |
CServerTask () | |
Constructor. | |
bool | exitRequired () const |
Returns true if the requireExit() has been called. | |
Private Attributes | |
volatile bool | _ExitRequired |
|
Destructor.
Definition at line 154 of file buf_server.cpp.
00155 { 00156 #ifdef NL_OS_UNIX 00157 close( _WakeUpPipeHandle[PipeRead] ); 00158 close( _WakeUpPipeHandle[PipeWrite] ); 00159 #endif 00160 } |
|
Constructor.
Definition at line 127 of file buf_server.cpp.
00127 : NbLoop (0), _ExitRequired(false) 00128 { 00129 #ifdef NL_OS_UNIX 00130 pipe( _WakeUpPipeHandle ); 00131 #endif 00132 } |
|
Returns true if the requireExit() has been called.
Definition at line 71 of file buf_server.h. References _ExitRequired. Referenced by NLNET::CServerReceiveTask::run(), and NLNET::CListenTask::run().
00071 { return _ExitRequired; } |
|
Tells the task to exit.
Definition at line 56 of file buf_server.h. References _ExitRequired. Referenced by NLNET::CBufServer::~CBufServer().
00056 { _ExitRequired = true; } |
|
Definition at line 80 of file buf_server.h. Referenced by exitRequired(), and requireExit(). |
|
Definition at line 63 of file buf_server.h. Referenced by NLNET::CBufServer::displayThreadStat(). |