![]() |
Project
|
Test program for thread safe FIFO. More...
#include <boost/test/unit_test.hpp>
#include "Fifo.h"
#include <iostream>
#include <iomanip>
#include <unistd.h>
#include <thread>
Go to the source code of this file.
Macros | |
#define | BOOST_TEST_MODULE Utility test |
#define | BOOST_TEST_MAIN |
#define | BOOST_TEST_DYN_LINK |
Functions | |
template<typename T > | |
bool | processValue (T value) |
template<class FifoT , typename T > | |
void | pushFifo (FifoT &fifo, T value=FifoT::value_type) |
BOOST_AUTO_TEST_CASE (test_Fifo) | |
Variables | |
const int | nEvents = 6 |
const int | sleepTime = 1 |
#define BOOST_TEST_DYN_LINK |
Definition at line 19 of file test_Fifo.cxx.
#define BOOST_TEST_MAIN |
Definition at line 18 of file test_Fifo.cxx.
#define BOOST_TEST_MODULE Utility test |
Definition at line 17 of file test_Fifo.cxx.
BOOST_AUTO_TEST_CASE | ( | test_Fifo | ) |
Definition at line 45 of file test_Fifo.cxx.
bool processValue | ( | T | value | ) |
Definition at line 31 of file test_Fifo.cxx.
void pushFifo | ( | FifoT & | fifo, |
T | value = FifoT::value_type |
||
) |
Definition at line 39 of file test_Fifo.cxx.
const int nEvents = 6 |
Definition at line 27 of file test_Fifo.cxx.
const int sleepTime = 1 |
Definition at line 28 of file test_Fifo.cxx.