Project
Loading...
Searching...
No Matches
test_Fifo.cxx File Reference

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
 

Detailed Description

Test program for thread safe FIFO.

Author
Matthias Richter
Since
2016-12-06

Definition in file test_Fifo.cxx.

Macro Definition Documentation

◆ BOOST_TEST_DYN_LINK

#define BOOST_TEST_DYN_LINK

Definition at line 19 of file test_Fifo.cxx.

◆ BOOST_TEST_MAIN

#define BOOST_TEST_MAIN

Definition at line 18 of file test_Fifo.cxx.

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   Utility test

Definition at line 17 of file test_Fifo.cxx.

Function Documentation

◆ BOOST_AUTO_TEST_CASE()

BOOST_AUTO_TEST_CASE ( test_Fifo  )

Definition at line 45 of file test_Fifo.cxx.

◆ processValue()

template<typename T >
bool processValue ( value)

Definition at line 31 of file test_Fifo.cxx.

◆ pushFifo()

template<class FifoT , typename T >
void pushFifo ( FifoT &  fifo,
value = FifoT::value_type 
)

Definition at line 39 of file test_Fifo.cxx.

Variable Documentation

◆ nEvents

const int nEvents = 6

Definition at line 27 of file test_Fifo.cxx.

◆ sleepTime

const int sleepTime = 1

Definition at line 28 of file test_Fifo.cxx.