C++ Library Extensions 2022.12.09
To help learn modern C++ programming
051-thread_count.cpp File Reference
#include <tpf_parallel.hpp>
#include <tpf_output.hpp>
#include <tpf_safe_type.hpp>
#include <tpf_chrono_random.hpp>
#include <execution>
#include <thread>
#include <sstream>
Include dependency graph for 051-thread_count.cpp:

Go to the source code of this file.

Classes

class  functor< Type >
 

Functions

void how_many_threads ()
 
void how_many_threads_with_functor ()
 
void test_for_each ()
 
void test_transform ()
 
void test_for_each_throw ()
 
void test_transform_throw ()
 
void test_find_if ()
 
int main ()
 

Variables

tpf::sstream stream
 
auto endl = tpf::endl
 

Function Documentation

◆ how_many_threads()

void how_many_threads ( )

Definition at line 13 of file 051-thread_count.cpp.

Here is the call graph for this function:

◆ how_many_threads_with_functor()

void how_many_threads_with_functor ( )

Definition at line 92 of file 051-thread_count.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( )

Definition at line 270 of file 051-thread_count.cpp.

Here is the call graph for this function:

◆ test_find_if()

void test_find_if ( )

Definition at line 236 of file 051-thread_count.cpp.

Here is the call graph for this function:

◆ test_for_each()

void test_for_each ( )

Definition at line 122 of file 051-thread_count.cpp.

Here is the call graph for this function:

◆ test_for_each_throw()

void test_for_each_throw ( )

Definition at line 171 of file 051-thread_count.cpp.

Here is the call graph for this function:

◆ test_transform()

void test_transform ( )

Definition at line 146 of file 051-thread_count.cpp.

Here is the call graph for this function:

◆ test_transform_throw()

void test_transform_throw ( )

Definition at line 200 of file 051-thread_count.cpp.

Here is the call graph for this function:

Variable Documentation

◆ endl

auto endl = tpf::endl

Definition at line 11 of file 051-thread_count.cpp.

◆ stream

tpf::sstream stream

Definition at line 10 of file 051-thread_count.cpp.