Public Member Functions | Private Attributes | List of all members
TestMultiThread Class Reference

Public Member Functions

void read ()
 
 TestMultiThread (int num_threads)
 
void write ()
 
 ~TestMultiThread ()
 

Private Attributes

int last_value
 
threadsafe::Map< int > map_
 
boost::shared_mutex mut
 

Detailed Description

Definition at line 34 of file test_thread_safe_map.cpp.

Constructor & Destructor Documentation

TestMultiThread::TestMultiThread ( int  num_threads)
inlineexplicit

Definition at line 37 of file test_thread_safe_map.cpp.

TestMultiThread::~TestMultiThread ( )
inline

Definition at line 55 of file test_thread_safe_map.cpp.

Member Function Documentation

void TestMultiThread::read ( )
inline

Definition at line 68 of file test_thread_safe_map.cpp.

void TestMultiThread::write ( )
inline

Definition at line 59 of file test_thread_safe_map.cpp.

Member Data Documentation

int TestMultiThread::last_value
private

Definition at line 84 of file test_thread_safe_map.cpp.

threadsafe::Map<int> TestMultiThread::map_
private

Definition at line 80 of file test_thread_safe_map.cpp.

boost::shared_mutex TestMultiThread::mut
private

Definition at line 85 of file test_thread_safe_map.cpp.


The documentation for this class was generated from the following file:


sr_utilities
Author(s): Ugo Cupcic
autogenerated on Tue Oct 13 2020 03:55:49