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

Go to the source code of this file.

Classes

struct  inc_thread< exit_val, Ctr >
 
struct  inc_by_val_thread< exit_val, Inc, Ctr >
 
struct  dec_thread< exit_val, Ctr >
 
struct  dec_by_val_thread< exit_val, Dec, Ctr >
 

Macros

#define BOOST_TEST_MODULE   libjmmcg_tests
 

Typedefs

typedef boost::mpl::list< api_lock_traits< platform_api, heavyweight_threading >::atomic_counter_type< long >> ctr_types
 

Functions

 BOOST_AUTO_TEST_CASE_TEMPLATE (parallel_increments, ctr_t, ctr_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (parallel_decrements, ctr_t, ctr_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (parallel_inc_and_dec, ctr_t, ctr_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (parallel_inc_and_dec_by_val, ctr_t, ctr_types)
 

Macro Definition Documentation

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   libjmmcg_tests

Definition at line 21 of file atomic_counter_parallel.cpp.

Typedef Documentation

◆ ctr_types

typedef boost::mpl::list< api_lock_traits<platform_api, heavyweight_threading>::atomic_counter_type<long>> ctr_types

Definition at line 34 of file atomic_counter_parallel.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [1/4]

BOOST_AUTO_TEST_CASE_TEMPLATE ( parallel_decrements  ,
ctr_t  ,
ctr_types   
)

Definition at line 137 of file atomic_counter_parallel.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [2/4]

BOOST_AUTO_TEST_CASE_TEMPLATE ( parallel_inc_and_dec  ,
ctr_t  ,
ctr_types   
)

Definition at line 152 of file atomic_counter_parallel.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [3/4]

BOOST_AUTO_TEST_CASE_TEMPLATE ( parallel_inc_and_dec_by_val  ,
ctr_t  ,
ctr_types   
)

Definition at line 168 of file atomic_counter_parallel.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [4/4]

BOOST_AUTO_TEST_CASE_TEMPLATE ( parallel_increments  ,
ctr_t  ,
ctr_types   
)

Definition at line 122 of file atomic_counter_parallel.cpp.