VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
DtIoServiceRunnable Class Reference

The DtIoServiceRunnable provides a thread to run the Boost io_service in to provide async I/O to the DtInetSocket classes. More...

+ Inheritance diagram for DtIoServiceRunnable:
+ Collaboration diagram for DtIoServiceRunnable:

Public Member Functions

 DtIoServiceRunnable (void *ioService, DtInetSocket *sock)
 Constructor. More...
 
virtual ~DtIoServiceRunnable ()
 Destructor. More...
 
virtual void run ()
 Main execution routine. More...
 
virtual void stop (bool block)
 
- Public Member Functions inherited from DtRunnable
 DtRunnable ()
 Constructor. More...
 
virtual ~DtRunnable ()
 Destructor. More...
 
virtual void stop ()
 Function that will be called when the thread is told to stop. More...
 
bool timeToStop ()
 Time to stop function which returns TRUE if it is time to stop execution. More...
 

Protected Attributes

bool threadIsStopped
 
void * myIoServiceImpl
 
DtInetSocketmySocket
 
- Protected Attributes inherited from DtRunnable
volatile boolmyStopFlag
 Pointer to the stop flag. More...
 

Additional Inherited Members

- Protected Member Functions inherited from DtRunnable
void execute (volatile bool *stopFlag)
 Protected execute function which calls run. More...
 

Detailed Description

The DtIoServiceRunnable provides a thread to run the Boost io_service in to provide async I/O to the DtInetSocket classes.

Constructor & Destructor Documentation

DtIoServiceRunnable::DtIoServiceRunnable ( void *  ioService,
DtInetSocket sock 
)

Constructor.

virtual DtIoServiceRunnable::~DtIoServiceRunnable ( )
virtual

Destructor.

Member Function Documentation

virtual void DtIoServiceRunnable::run ( )
virtual

Main execution routine.

  • Called by start() when run as a thread

Implements DtRunnable.

virtual void DtIoServiceRunnable::stop ( bool  block)
virtual

Member Data Documentation

void* DtIoServiceRunnable::myIoServiceImpl
protected
DtInetSocket* DtIoServiceRunnable::mySocket
protected
bool DtIoServiceRunnable::threadIsStopped
protected

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

Document ID: Generated on Wed Mar 27 02:04:30 EDT 2024 from SVN revision 264570
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)