|
reSIProcate/stack
9694
|


Public Member Functions | |
| FakeApp (SelectInterruptor &s) | |
| ~FakeApp () | |
| void | thread () |
Private Attributes | |
| SelectInterruptor & | mSi |
Definition at line 25 of file testSelectInterruptor.cxx.
| 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.
{};
| 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();
}

SelectInterruptor& FakeApp::mSi [private] |
Definition at line 33 of file testSelectInterruptor.cxx.
Referenced by thread().
1.7.5.1