RigsofRods
Soft-body Physics Simulation
Public Member Functions | Protected Attributes
InterThreadStoreVector< T > Class Template Reference

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
 

Detailed Description

template<class T>
class InterThreadStoreVector< T >

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.

Member Function Documentation

◆ pull()

template<class T >
void InterThreadStoreVector< T >::pull ( std::vector< T > &  res)
inline

Definition at line 39 of file InterThreadStoreVector.h.

+ Here is the caller graph for this function:

◆ push()

template<class T >
void InterThreadStoreVector< T >::push ( v)
inline

Definition at line 33 of file InterThreadStoreVector.h.

+ Here is the caller graph for this function:

Field Documentation

◆ m_vector_mutex

template<class T >
std::mutex InterThreadStoreVector< T >::m_vector_mutex
protected

Definition at line 48 of file InterThreadStoreVector.h.

◆ store

template<class T >
std::vector<T> InterThreadStoreVector< T >::store
protected

Definition at line 49 of file InterThreadStoreVector.h.


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