A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::ThreadedSimulatorEventsTestCase Class Reference
+ Inheritance diagram for ns3::ThreadedSimulatorEventsTestCase:
+ Collaboration diagram for ns3::ThreadedSimulatorEventsTestCase:

Public Member Functions

 ThreadedSimulatorEventsTestCase (ObjectFactory schedulerFactory, const std::string &simulatorType, unsigned int threads)
void A (int a)
void B (int b)
void C (int c)
void D (int d)
void DoNothing (unsigned int threadno)
void End (void)
- Public Member Functions inherited from ns3::TestCase
virtual ~TestCase ()

Static Public Member Functions

static void SchedulingThread (std::pair< ThreadedSimulatorEventsTestCase *, unsigned int > context)

Public Attributes

uint64_t m_a
uint64_t m_b
uint64_t m_c
uint64_t m_d
std::string m_error
ObjectFactory m_schedulerFactory
std::string m_simulatorType
bool m_stop
std::list< Ptr< SystemThread > > m_threadlist
unsigned int m_threads
bool m_threadWaiting [MAXTHREADS]

Private Member Functions

virtual void DoRun (void)
virtual void DoSetup (void)
virtual void DoTeardown (void)

Additional Inherited Members

- Protected Member Functions inherited from ns3::TestCase
 TestCase (std::string name)
void AddTestCase (TestCase *testCase)
 Add an individual test case to this test suite.
std::string CreateDataDirFilename (std::string filename)
std::string CreateTempDirFilename (std::string filename)
bool GetErrorStatus (void) const NS_DEPRECATED
std::string GetName (void) const
bool IsStatusFailure (void) const
bool IsStatusSuccess (void) const
bool MustAssertOnFailure (void) const
bool MustContinueOnFailure (void) const
void ReportTestFailure (std::string cond, std::string actual, std::string limit, std::string message, std::string file, int32_t line)
void SetDataDir (std::string directory)

Detailed Description

Definition at line 38 of file threaded-test-suite.cc.

Constructor & Destructor Documentation

ns3::ThreadedSimulatorEventsTestCase::ThreadedSimulatorEventsTestCase ( ObjectFactory  schedulerFactory,
const std::string &  simulatorType,
unsigned int  threads 
)

Definition at line 67 of file threaded-test-suite.cc.

Member Function Documentation

void ns3::ThreadedSimulatorEventsTestCase::A ( int  a)

Definition at line 116 of file threaded-test-suite.cc.

References B(), m_a, m_b, m_c, m_d, m_error, ns3::MicroSeconds(), ns3::Simulator::Schedule(), and ns3::Simulator::Stop().

Referenced by D(), and DoRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::ThreadedSimulatorEventsTestCase::B ( int  b)

Definition at line 129 of file threaded-test-suite.cc.

References C(), m_a, m_b, m_c, m_d, m_error, ns3::MicroSeconds(), ns3::Simulator::Schedule(), and ns3::Simulator::Stop().

Referenced by A().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::ThreadedSimulatorEventsTestCase::C ( int  c)

Definition at line 142 of file threaded-test-suite.cc.

References D(), m_a, m_b, m_c, m_d, m_error, ns3::MicroSeconds(), ns3::Simulator::Schedule(), and ns3::Simulator::Stop().

Referenced by B().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::ThreadedSimulatorEventsTestCase::D ( int  d)

Definition at line 155 of file threaded-test-suite.cc.

References A(), m_a, m_b, m_c, m_d, m_error, m_stop, ns3::MicroSeconds(), ns3::Simulator::Schedule(), and ns3::Simulator::Stop().

Referenced by C().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::ThreadedSimulatorEventsTestCase::DoNothing ( unsigned int  threadno)

Definition at line 107 of file threaded-test-suite.cc.

References m_error, and m_threadWaiting.

Referenced by SchedulingThread().

+ Here is the caller graph for this function:

void ns3::ThreadedSimulatorEventsTestCase::DoRun ( void  )
privatevirtual
void ns3::ThreadedSimulatorEventsTestCase::DoSetup ( void  )
privatevirtual

Definition at line 175 of file threaded-test-suite.cc.

References m_a, m_b, m_c, m_d, m_error, m_simulatorType, m_threadlist, m_threads, ns3::MakeBoundCallback(), SchedulingThread(), and ns3::Config::SetGlobal().

+ Here is the call graph for this function:

void ns3::ThreadedSimulatorEventsTestCase::DoTeardown ( void  )
privatevirtual

Definition at line 198 of file threaded-test-suite.cc.

References m_threadlist, and ns3::Config::SetGlobal().

+ Here is the call graph for this function:

void ns3::ThreadedSimulatorEventsTestCase::End ( void  )

Definition at line 77 of file threaded-test-suite.cc.

References list, m_stop, and m_threadlist.

Referenced by DoRun().

+ Here is the caller graph for this function:

void ns3::ThreadedSimulatorEventsTestCase::SchedulingThread ( std::pair< ThreadedSimulatorEventsTestCase *, unsigned int >  context)
static

Definition at line 86 of file threaded-test-suite.cc.

References DoNothing(), m_stop, m_threadWaiting, ns3::MicroSeconds(), and ns3::Simulator::ScheduleWithContext().

Referenced by DoSetup().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

uint64_t ns3::ThreadedSimulatorEventsTestCase::m_a

Definition at line 50 of file threaded-test-suite.cc.

Referenced by A(), B(), C(), D(), DoRun(), and DoSetup().

uint64_t ns3::ThreadedSimulatorEventsTestCase::m_b

Definition at line 49 of file threaded-test-suite.cc.

Referenced by A(), B(), C(), D(), DoRun(), and DoSetup().

uint64_t ns3::ThreadedSimulatorEventsTestCase::m_c

Definition at line 51 of file threaded-test-suite.cc.

Referenced by A(), B(), C(), D(), DoRun(), and DoSetup().

uint64_t ns3::ThreadedSimulatorEventsTestCase::m_d

Definition at line 52 of file threaded-test-suite.cc.

Referenced by A(), B(), C(), D(), DoRun(), and DoSetup().

std::string ns3::ThreadedSimulatorEventsTestCase::m_error

Definition at line 58 of file threaded-test-suite.cc.

Referenced by A(), B(), C(), D(), DoNothing(), DoRun(), and DoSetup().

ObjectFactory ns3::ThreadedSimulatorEventsTestCase::m_schedulerFactory

Definition at line 56 of file threaded-test-suite.cc.

Referenced by DoRun().

std::string ns3::ThreadedSimulatorEventsTestCase::m_simulatorType

Definition at line 57 of file threaded-test-suite.cc.

Referenced by DoSetup().

bool ns3::ThreadedSimulatorEventsTestCase::m_stop

Definition at line 55 of file threaded-test-suite.cc.

Referenced by D(), DoRun(), End(), and SchedulingThread().

std::list<Ptr<SystemThread> > ns3::ThreadedSimulatorEventsTestCase::m_threadlist

Definition at line 59 of file threaded-test-suite.cc.

Referenced by DoRun(), DoSetup(), DoTeardown(), and End().

unsigned int ns3::ThreadedSimulatorEventsTestCase::m_threads

Definition at line 53 of file threaded-test-suite.cc.

Referenced by DoSetup().

bool ns3::ThreadedSimulatorEventsTestCase::m_threadWaiting[MAXTHREADS]

Definition at line 54 of file threaded-test-suite.cc.

Referenced by DoNothing(), and SchedulingThread().


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