libjmmcg  release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
dataflow_priority.cpp File Reference
#include "stdafx.h"
#include <boost/test/included/unit_test.hpp>
#include <boost/mpl/list.hpp>
#include "core/thread_pool_sequential.hpp"
#include "core/thread_pool_master.hpp"
#include "core/thread_pool_workers.hpp"
#include <random>
Include dependency graph for dataflow_priority.cpp:

Go to the source code of this file.

Classes

struct  priority_queue_t< Db, Sz, Jn, Mdl, PoolSize, GSSk >
 
struct  res_t
 
struct  work_type_simple
 

Macros

#define BOOST_TEST_MODULE   libjmmcg_tests
 

Typedefs

typedef boost::mpl::list< priority_queue_t< pool_traits::work_distribution_mode_t::worker_threads_get_work< pool_traits::work_distribution_mode_t::queue_model_t::pool_owns_queue >, pool_traits::size_mode_t::fixed_size, generic_traits::return_data::joinable, heavyweight_threading, 1 >> finite_test_types
 
typedef boost::mpl::list<> infinite_test_types
 

Functions

 BOOST_AUTO_TEST_CASE_TEMPLATE (n_threads, T, finite_test_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (add_one_work, T, finite_test_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (add_one_work, T, infinite_test_types)
 

Macro Definition Documentation

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   libjmmcg_tests

Definition at line 21 of file dataflow_priority.cpp.

Typedef Documentation

◆ finite_test_types

typedef boost::mpl::list< priority_queue_t<pool_traits::work_distribution_mode_t::worker_threads_get_work<pool_traits::work_distribution_mode_t::queue_model_t::pool_owns_queue>, pool_traits::size_mode_t::fixed_size, generic_traits::return_data::joinable, heavyweight_threading, 1>> finite_test_types

Definition at line 60 of file dataflow_priority.cpp.

◆ infinite_test_types

typedef boost::mpl::list<> infinite_test_types

Definition at line 65 of file dataflow_priority.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [1/3]

BOOST_AUTO_TEST_CASE_TEMPLATE ( add_one_work  ,
,
finite_test_types   
)

Definition at line 123 of file dataflow_priority.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [2/3]

BOOST_AUTO_TEST_CASE_TEMPLATE ( add_one_work  ,
,
infinite_test_types   
)

Definition at line 168 of file dataflow_priority.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [3/3]

BOOST_AUTO_TEST_CASE_TEMPLATE ( n_threads  ,
,
finite_test_types   
)

Definition at line 97 of file dataflow_priority.cpp.

References work_type_simple::work_type_simple().