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

Go to the source code of this file.

Classes

struct  details< api_lock_traits< platform_api, heavyweight_threading >::anon_spin_event_type >
 
struct  details< api_lock_traits< platform_api, heavyweight_threading >::mutex_type >
 
struct  details< std::mutex >
 
struct  details< boost::mutex >
 

Macros

#define BOOST_TEST_MODULE   libjmmcg_tests
 

Typedefs

using timed_results_t = ave_deviation_meter< double >
 
using lock_types = boost::mpl::list< details< api_lock_traits< platform_api, heavyweight_threading >::anon_spin_event_type >, details< api_lock_traits< platform_api, heavyweight_threading >::mutex_type >, details< std::mutex >, details< boost::mutex > >
 

Functions

 BOOST_AUTO_TEST_CASE (ctor)
 
 BOOST_AUTO_TEST_CASE (scoped_lock)
 
 BOOST_AUTO_TEST_CASE (multithreaded_scoped_lock)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (multithreaded_scoped_lock, details_t, lock_types)
 

Macro Definition Documentation

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   libjmmcg_tests

Definition at line 21 of file mutex.cpp.

Typedef Documentation

◆ lock_types

typedef boost::mpl::list< details< api_lock_traits< platform_api, heavyweight_threading >::anon_spin_event_type >, details< api_lock_traits< platform_api, heavyweight_threading >::mutex_type >, details< std::mutex >, details< boost::mutex > > lock_types

Definition at line 69 of file mutex.cpp.

◆ timed_results_t

using timed_results_t = ave_deviation_meter<double>

Definition at line 38 of file mutex.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/3]

BOOST_AUTO_TEST_CASE ( ctor  )

Definition at line 78 of file mutex.cpp.

◆ BOOST_AUTO_TEST_CASE() [2/3]

BOOST_AUTO_TEST_CASE ( multithreaded_scoped_lock  )

Definition at line 94 of file mutex.cpp.

◆ BOOST_AUTO_TEST_CASE() [3/3]

BOOST_AUTO_TEST_CASE ( scoped_lock  )

Definition at line 86 of file mutex.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE()

BOOST_AUTO_TEST_CASE_TEMPLATE ( multithreaded_scoped_lock  ,
details_t  ,
lock_types   
)

\xrefitem test 20. \xrefitem test 170.

Definition at line 146 of file mutex.cpp.