![]() |
RigsofRods
2023.09
Soft-body Physics Simulation
|
this class is a helper to exchange data in a class between different threads, it can be pushed and pulled in various threads More...
#include <InterThreadStoreVector.h>
Public Member Functions | |
void | push (T v) |
void | pull (std::vector< T > &res) |
Protected Attributes | |
std::mutex | m_vector_mutex |
std::vector< T > | store |
this class is a helper to exchange data in a class between different threads, it can be pushed and pulled in various threads
Definition at line 29 of file InterThreadStoreVector.h.
|
inline |
Definition at line 39 of file InterThreadStoreVector.h.
|
inline |
Definition at line 33 of file InterThreadStoreVector.h.
|
protected |
Definition at line 48 of file InterThreadStoreVector.h.
|
protected |
Definition at line 49 of file InterThreadStoreVector.h.