libjmmcg  release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
intrusive_parallel.cpp File Reference
#include "stdafx.h"
#include <boost/test/included/unit_test.hpp>
#include "core/intrusive.hpp"
#include "core/ave_deviation_meter.hpp"
#include "core/stats_output.hpp"
#include "core/thread_wrapper.hpp"
#include <chrono>
#include <set>
Include dependency graph for intrusive_parallel.cpp:

Go to the source code of this file.

Classes

struct  data< LT >
 
struct  add_thread< N, Cont, Ins >
 
struct  pop_thread< Cont >
 

Macros

#define BOOST_TEST_MODULE   libjmmcg_tests
 

Typedefs

using lock_t = api_lock_traits< platform_api, heavyweight_threading >
 
using timed_results_t = ave_deviation_meter< double >
 
typedef intrusive::stack< data, lock_tcontainer_type
 

Functions

 BOOST_AUTO_TEST_CASE (push)
 
 BOOST_AUTO_TEST_CASE (pop)
 
 BOOST_AUTO_TEST_CASE (push_front)
 
 BOOST_AUTO_TEST_CASE (pop_front)
 

Macro Definition Documentation

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   libjmmcg_tests

Definition at line 21 of file intrusive_parallel.cpp.

Typedef Documentation

◆ container_type

typedef intrusive::slist< data, lock_t > container_type

Definition at line 121 of file intrusive_parallel.cpp.

◆ lock_t

typedef ppd::api_lock_traits< ppd::generic_traits::api_type::no_api, ppd::sequential_mode >::critical_section_type::lock_type lock_t

Definition at line 36 of file intrusive_parallel.cpp.

◆ timed_results_t

using timed_results_t = ave_deviation_meter<double>

Definition at line 37 of file intrusive_parallel.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/4]

BOOST_AUTO_TEST_CASE ( pop  )

\xrefitem test 5. \xrefitem test 156.

Definition at line 203 of file intrusive_parallel.cpp.

◆ BOOST_AUTO_TEST_CASE() [2/4]

BOOST_AUTO_TEST_CASE ( pop_front  )

\xrefitem test 7. \xrefitem test 158.

Definition at line 393 of file intrusive_parallel.cpp.

◆ BOOST_AUTO_TEST_CASE() [3/4]

BOOST_AUTO_TEST_CASE ( push  )

\xrefitem test 4. \xrefitem test 155.

Definition at line 130 of file intrusive_parallel.cpp.

◆ BOOST_AUTO_TEST_CASE() [4/4]

BOOST_AUTO_TEST_CASE ( push_front  )

\xrefitem test 6. \xrefitem test 157.

Definition at line 274 of file intrusive_parallel.cpp.