reSIProcate/stack  9694
Public Member Functions | Private Attributes
FakeApp Class Reference
Inheritance diagram for FakeApp:
Inheritance graph
[legend]
Collaboration diagram for FakeApp:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 FakeApp (SelectInterruptor &s)
 ~FakeApp ()
void thread ()

Private Attributes

SelectInterruptormSi

Detailed Description

Definition at line 25 of file testSelectInterruptor.cxx.


Constructor & Destructor Documentation

FakeApp::FakeApp ( SelectInterruptor s)

Definition at line 36 of file testSelectInterruptor.cxx.

                                     : mSi(s)
{}
FakeApp::~FakeApp ( ) [inline]

Definition at line 29 of file testSelectInterruptor.cxx.

{};

Member Function Documentation

void FakeApp::thread ( ) [virtual]

Implements resip::ThreadIf.

Definition at line 39 of file testSelectInterruptor.cxx.

References InfoLog, resip::SelectInterruptor::interrupt(), mSi, and resip::ThreadIf::shutdown().

{
    static unsigned wakeups[6] = { 3, 1, 0, 2, 5, 1 };

    for (unsigned long n = 0; n < sizeof(wakeups)/sizeof(long); n++)
    {
       InfoLog( << "Wakeup in: " << wakeups[n] << ", " << n+1 << " of " 
                << sizeof(wakeups)/sizeof(long));
#ifdef WIN32
           Sleep(wakeups[n]*1000);
#else
           sleep(wakeups[n]);
#endif
       InfoLog(<< "Waking up select");
       mSi.interrupt();
    }
    shutdown();
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 33 of file testSelectInterruptor.cxx.

Referenced by thread().


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