μHAL (v2.8.17)
Part of the IPbus software repository
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Public Attributes | List of all members
TestThread Struct Reference

Public Member Functions

 TestThread ()
 
 ~TestThread ()
 
void stop ()
 
void join () const
 
void sleep ()
 
 TestThread ()
 
 ~TestThread ()
 
void stop ()
 
void join () const
 
void sleep ()
 

Public Attributes

std::thread * t_ {nullptr}
 
std::atomic< bool > stop_
 

Detailed Description

Definition at line 40 of file test_iostream.cpp.

Constructor & Destructor Documentation

◆ TestThread() [1/2]

TestThread::TestThread ( )
inline

Definition at line 41 of file test_iostream.cpp.

References stop_, and t_.

◆ ~TestThread() [1/2]

TestThread::~TestThread ( )
inline

Definition at line 61 of file test_iostream.cpp.

References t_.

◆ TestThread() [2/2]

TestThread::TestThread ( )
inline

Definition at line 37 of file test_iostream.cpp.

References stop_, and t_.

◆ ~TestThread() [2/2]

TestThread::~TestThread ( )
inline

Definition at line 57 of file test_iostream.cpp.

References t_.

Member Function Documentation

◆ join() [1/2]

void TestThread::join ( ) const
inline

Definition at line 65 of file test_iostream.cpp.

References t_.

Referenced by TEST_SUBMODULE().

◆ join() [2/2]

void TestThread::join ( ) const
inline

Definition at line 61 of file test_iostream.cpp.

References t_.

◆ sleep() [1/2]

void TestThread::sleep ( )
inline

Definition at line 70 of file test_iostream.cpp.

Referenced by TEST_SUBMODULE().

◆ sleep() [2/2]

void TestThread::sleep ( )
inline

Definition at line 66 of file test_iostream.cpp.

◆ stop() [1/2]

void TestThread::stop ( )
inline

Definition at line 63 of file test_iostream.cpp.

References stop_.

Referenced by TEST_SUBMODULE().

◆ stop() [2/2]

void TestThread::stop ( )
inline

Definition at line 59 of file test_iostream.cpp.

References stop_.

Member Data Documentation

◆ stop_

std::atomic< bool > TestThread::stop_

Definition at line 76 of file test_iostream.cpp.

Referenced by stop(), and TestThread().

◆ t_

std::thread * TestThread::t_ {nullptr}

Definition at line 75 of file test_iostream.cpp.

Referenced by join(), TestThread(), and ~TestThread().


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