|
BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Implements class CLASS? More...
Go to the source code of this file.
Classes | |
| class | ThreadSafeStackTest |
| Testing AxisItems. More... | |
Functions | |
| TEST_F (ThreadSafeStackTest, concurentPushAndPop) | |
| Push and pop in concurrent mode. More... | |
| TEST_F (ThreadSafeStackTest, concurentStopWaiting) | |
| Explicitely terminate waiting (concurrent mode). More... | |
| TEST_F (ThreadSafeStackTest, initialState) | |
| Checking stack initial state (single thread mode). More... | |
| TEST_F (ThreadSafeStackTest, pushAndPop) | |
| Push and then pop (single thread mode). More... | |
| TEST_F (ThreadSafeStackTest, updateTop) | |
| Update top value (single thread mode). More... | |
Implements class CLASS?
Definition in file threadsafestack.test.cpp.
| TEST_F | ( | ThreadSafeStackTest | , |
| concurentPushAndPop | |||
| ) |
Push and pop in concurrent mode.
Test is borrowed from Anthony Williams, C++ Concurrency in Action, Second edition.
Definition at line 87 of file threadsafestack.test.cpp.
References ModelView::threadsafe_stack< T >::empty(), ModelView::threadsafe_stack< T >::push(), and ModelView::threadsafe_stack< T >::wait_and_pop().
| TEST_F | ( | ThreadSafeStackTest | , |
| concurentStopWaiting | |||
| ) |
Explicitely terminate waiting (concurrent mode).
Definition at line 131 of file threadsafestack.test.cpp.
References ModelView::threadsafe_stack< T >::empty(), ModelView::threadsafe_stack< T >::stop(), and ModelView::threadsafe_stack< T >::wait_and_pop().
| TEST_F | ( | ThreadSafeStackTest | , |
| initialState | |||
| ) |
Checking stack initial state (single thread mode).
Definition at line 32 of file threadsafestack.test.cpp.
References ModelView::threadsafe_stack< T >::empty(), and ModelView::threadsafe_stack< T >::try_pop().
| TEST_F | ( | ThreadSafeStackTest | , |
| pushAndPop | |||
| ) |
Push and then pop (single thread mode).
Definition at line 45 of file threadsafestack.test.cpp.
References ModelView::threadsafe_stack< T >::empty(), ModelView::threadsafe_stack< T >::push(), ModelView::threadsafe_stack< T >::try_pop(), and ModelView::threadsafe_stack< T >::wait_and_pop().
| TEST_F | ( | ThreadSafeStackTest | , |
| updateTop | |||
| ) |
Update top value (single thread mode).
Definition at line 62 of file threadsafestack.test.cpp.
References ModelView::threadsafe_stack< T >::empty(), ModelView::threadsafe_stack< T >::push(), ModelView::threadsafe_stack< T >::try_pop(), ModelView::threadsafe_stack< T >::update_top(), and ModelView::threadsafe_stack< T >::wait_and_pop().