C++ Library Extensions 2022.12.09
To help learn modern C++ programming
035-parallel_synchronization.cpp File Reference
#include <tpf_output.hpp>
#include <tpf_chrono_random.hpp>
#include <sstream>
#include <set>
#include <string>
#include <mutex>
#include <thread>
#include <execution>
Include dependency graph for 035-parallel_synchronization.cpp:

Go to the source code of this file.

Classes

class  functor< Type >
 

Functions

void test_threads_in_parallel_algorithm ()
 
void test_threads_in_parallel_algorithm_for_locals ()
 
void test_threads_in_parallel_algorithm_with_functor ()
 
int main ()
 

Variables

tpf::sstream stream
 
auto endl = tpf::endl
 
int thread_count {0}
 

Function Documentation

◆ main()

int main ( )

Definition at line 236 of file 035-parallel_synchronization.cpp.

Here is the call graph for this function:

◆ test_threads_in_parallel_algorithm()

void test_threads_in_parallel_algorithm ( )

Definition at line 14 of file 035-parallel_synchronization.cpp.

◆ test_threads_in_parallel_algorithm_for_locals()

void test_threads_in_parallel_algorithm_for_locals ( )

Definition at line 69 of file 035-parallel_synchronization.cpp.

◆ test_threads_in_parallel_algorithm_with_functor()

void test_threads_in_parallel_algorithm_with_functor ( )

Definition at line 204 of file 035-parallel_synchronization.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ endl

auto endl = tpf::endl

Definition at line 12 of file 035-parallel_synchronization.cpp.

◆ stream

tpf::sstream stream

Definition at line 11 of file 035-parallel_synchronization.cpp.

◆ thread_count

int thread_count {0}

Definition at line 129 of file 035-parallel_synchronization.cpp.