C++ Library Extensions 2022.12.09
To help learn modern C++ programming
052-tbb.cpp File Reference
#include <iostream>
#include <mutex>
#include <tbb/tbb.h>
#include <tbb/concurrent_vector.h>
Include dependency graph for 052-tbb.cpp:

Go to the source code of this file.

Classes

class  FibTask
 

Functions

void test_tbb ()
 
template<typename Type >
Type serial_fibonacci_recursion (Type n)
 
template<typename Type >
Type serial_fibonacci_loop (Type n)
 
void test_serial_fibonacci ()
 
void test_fibonacci_lambda ()
 
long ParallelFib (long n)
 
void test_parallel_fibonacci ()
 
int main ()
 

Variables

const int CutOff = 16
 

Function Documentation

◆ main()

int main ( )

Definition at line 139 of file 052-tbb.cpp.

Here is the call graph for this function:

◆ ParallelFib()

long ParallelFib ( long  n)

Definition at line 116 of file 052-tbb.cpp.

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

◆ serial_fibonacci_loop()

template<typename Type >
Type serial_fibonacci_loop ( Type  n)

Definition at line 29 of file 052-tbb.cpp.

Here is the caller graph for this function:

◆ serial_fibonacci_recursion()

template<typename Type >
Type serial_fibonacci_recursion ( Type  n)

Definition at line 20 of file 052-tbb.cpp.

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

◆ test_fibonacci_lambda()

void test_fibonacci_lambda ( )

Definition at line 56 of file 052-tbb.cpp.

◆ test_parallel_fibonacci()

void test_parallel_fibonacci ( )

Definition at line 133 of file 052-tbb.cpp.

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

◆ test_serial_fibonacci()

void test_serial_fibonacci ( )

Definition at line 50 of file 052-tbb.cpp.

Here is the call graph for this function:

◆ test_tbb()

void test_tbb ( )

Definition at line 7 of file 052-tbb.cpp.

Here is the call graph for this function:

Variable Documentation

◆ CutOff

const int CutOff = 16

Definition at line 81 of file 052-tbb.cpp.