NLNET::CServerTask Class Reference

#include <buf_server.h>

Inheritance diagram for NLNET::CServerTask:

NLNET::CListenTask NLNET::CServerReceiveTask

Detailed Description

Common part of CListenTask and CServerReceiveTask

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


Constructor & Destructor Documentation

NLNET::CServerTask::~CServerTask  )  [virtual]
 

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 }

NLNET::CServerTask::CServerTask  )  [protected]
 

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 }


Member Function Documentation

bool NLNET::CServerTask::exitRequired  )  const [inline, protected]
 

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; }

void NLNET::CServerTask::requireExit  )  [inline]
 

Tells the task to exit.

Definition at line 56 of file buf_server.h.

References _ExitRequired.

Referenced by NLNET::CBufServer::~CBufServer().

00056 { _ExitRequired = true; }


Field Documentation

volatile bool NLNET::CServerTask::_ExitRequired [private]
 

Definition at line 80 of file buf_server.h.

Referenced by exitRequired(), and requireExit().

uint32 NLNET::CServerTask::NbLoop
 

Definition at line 63 of file buf_server.h.

Referenced by NLNET::CBufServer::displayThreadStat().


The documentation for this class was generated from the following files:
Generated on Tue Mar 16 14:03:44 2004 for NeL by doxygen 1.3.6