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

List of all members.

Public Member Functions

 TestThread (SharedPtr< Foo > &)
virtual ~TestThread ()
void thread ()

Private Attributes

SharedPtr< FoomFoo

Detailed Description

Definition at line 40 of file testSharedPtr.cxx.


Constructor & Destructor Documentation

TestThread::TestThread ( SharedPtr< Foo > &  f)

Definition at line 62 of file testSharedPtr.cxx.

                                        :
   mFoo(f)
{}
virtual TestThread::~TestThread ( ) [inline, virtual]

Definition at line 44 of file testSharedPtr.cxx.

      {
#ifdef VERBOSE
         cerr << "TestThread finishing..." << endl;
#endif
         shutdown();
         join();
#ifdef VERBOSE
         cerr << "TestThread finished" << endl;
#endif
      };

Member Function Documentation

void TestThread::thread ( ) [virtual]

Implements resip::ThreadIf.

Definition at line 66 of file testSharedPtr.cxx.

References mFoo, resip::ThreadIf::mShutdown, resip::SharedPtr< T >::reset(), and sleepMS().

{
    while (!mShutdown) 
    {
       sleepMS(5);
       assert(mFoo->mVal == Data("data"));
    }
    mFoo.reset();
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 59 of file testSharedPtr.cxx.

Referenced by thread().


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