OpenWalnut  1.5.0dev
Public Member Functions | Public Attributes | List of all members
Callable Class Reference

Helper class. More...

#include <WFlag_test.h>

+ Collaboration diagram for Callable:

Public Member Functions

 Callable ()
 Constructor. More...
 
void threadMain ()
 Thread function. More...
 

Public Attributes

WFlag< bool > * flag
 The flag to be tested. More...
 
bool finished
 True if the thread finishes. More...
 

Detailed Description

Helper class.

Definition at line 39 of file WFlag_test.h.

Constructor & Destructor Documentation

◆ Callable()

Callable::Callable ( )
inline

Constructor.

To init the Flag.

Definition at line 55 of file WFlag_test.h.

References finished, and flag.

Member Function Documentation

◆ threadMain()

void Callable::threadMain ( )
inline

Thread function.

Definition at line 64 of file WFlag_test.h.

References finished, flag, and WFlag< T >::wait().

Referenced by WFlagTest::testWaitNotify().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ finished

bool Callable::finished

True if the thread finishes.

Definition at line 50 of file WFlag_test.h.

Referenced by Callable(), WFlagTest::testWaitNotify(), and threadMain().

◆ flag

WFlag<bool>* Callable::flag

The flag to be tested.

Definition at line 45 of file WFlag_test.h.

Referenced by Callable(), WFlagTest::testWaitNotify(), and threadMain().


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