Threads supporting OGDF's memory management. More...
#include <ogdf/basic/Thread.h>
Public Member Functions | |
Thread () | |
template<class Function , class... Args> | |
Thread (Function &&f, Args &&... args) | |
Thread (Thread &&other) | |
Thread & | operator= (Thread &&other) |
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).