Fawkes API  Fawkes Development Version
WaitConditionTest Class Reference

Test class for WaitConditions This class tets basic functionality of WaitConditions, mainly thread cancellation problems. More...

Inheritance diagram for WaitConditionTest:

Protected Member Functions

void start_test (void *(*thread_func)(void *))
 Start threads with the given function, cancel the threads and assert they have terminated. More...
 

Detailed Description

Test class for WaitConditions This class tets basic functionality of WaitConditions, mainly thread cancellation problems.

Definition at line 44 of file test_wait_condition.cpp.

Member Function Documentation

◆ start_test()

void WaitConditionTest::start_test ( void *(*)(void *)  thread_func)
inlineprotected

Start threads with the given function, cancel the threads and assert they have terminated.

Parameters
thread_funcThe function the threads are started with.

Definition at line 60 of file test_wait_condition.cpp.

References fawkes::WaitCondition::abstimed_wait(), thread_params::cond, fawkes::WaitCondition::reltimed_wait(), and fawkes::WaitCondition::wait().


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