Open
Graph Drawing
Framework

 v. 2022.02 (Dogwood)
 

ogdf::Thread Class Reference

Threads supporting OGDF's memory management. More...

#include <ogdf/basic/Thread.h>

+ Inheritance diagram for ogdf::Thread:

Public Member Functions

 Thread ()
 
template<class Function , class ... Args>
 Thread (Function &&f, Args &&... args)
 
 Thread (Thread &&other)
 
Threadoperator= (Thread &&other)
 

Detailed Description

Threads supporting OGDF's memory management.

This class derives from std::thread and extends the constructor in such a way that worker functions correctly call thread-specific initialization and clean-up functions for OGDF's memory management.

If you use OGDF data structures in your threads you have to use the Thread class (instead of just using std::thread), or you need to call the flushPool() function of the memory allocator manually (see Thread's constructor for an example).

Definition at line 53 of file Thread.h.

Constructor & Destructor Documentation

◆ Thread() [1/3]

ogdf::Thread::Thread ( )
inline

Definition at line 56 of file Thread.h.

◆ Thread() [2/3]

ogdf::Thread::Thread ( Thread &&  other)
inline

Definition at line 57 of file Thread.h.

◆ Thread() [3/3]

template<class Function , class ... Args>
ogdf::Thread::Thread ( Function &&  f,
Args &&...  args 
)
inlineexplicit

Definition at line 70 of file Thread.h.

Member Function Documentation

◆ operator=()

Thread& ogdf::Thread::operator= ( Thread &&  other)
inline

Definition at line 76 of file Thread.h.


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