Graph Drawing

 v. 2023.09 (Elderberry)

No Matches
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 ( )

Definition at line 55 of file Thread.h.

◆ Thread() [2/3]

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

Definition at line 57 of file Thread.h.

◆ Thread() [3/3]

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

Definition at line 71 of file Thread.h.

Member Function Documentation

◆ operator=()

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

Definition at line 80 of file Thread.h.

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