reSIProcate/repro  9694
Public Member Functions | Private Member Functions | Private Attributes
repro::RegSyncServerThread Class Reference

#include <RegSyncServerThread.hxx>

Inheritance diagram for repro::RegSyncServerThread:
Inheritance graph
[legend]
Collaboration diagram for repro::RegSyncServerThread:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 RegSyncServerThread (const std::list< RegSyncServer * > &regSyncServerList)

Private Member Functions

virtual void thread ()

Private Attributes

std::list< RegSyncServer * > mRegSyncServerList

Detailed Description

Definition at line 13 of file RegSyncServerThread.hxx.


Constructor & Destructor Documentation

RegSyncServerThread::RegSyncServerThread ( const std::list< RegSyncServer * > &  regSyncServerList)

Definition at line 14 of file RegSyncServerThread.cxx.

   : mRegSyncServerList(regSyncServerList)
{
}

Member Function Documentation

void RegSyncServerThread::thread ( ) [private, virtual]

Implements resip::ThreadIf.

Definition at line 20 of file RegSyncServerThread.cxx.

{
   while (!isShutdown())
   {
      try
      {
           FdSet fdset; 
     
           std::list<RegSyncServer*>::iterator it = mRegSyncServerList.begin();
           for(;it!=mRegSyncServerList.end();it++)
           {
              (*it)->buildFdSet(fdset);
           }
           fdset.selectMilliSeconds( 2*1000 );
           
           it = mRegSyncServerList.begin();
           for(;it!=mRegSyncServerList.end();it++)
           {
              (*it)->process(fdset);
           }
      }
      catch (...)
      {
         ErrLog (<< "RegSyncServerThread::thread: Unhandled exception: " );
      }
   }
}

Member Data Documentation

Definition at line 22 of file RegSyncServerThread.hxx.


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