knowL: Knowledge Libraries
|
#include <ReusableResource.h>
Classes | |
struct | Handle_ |
Public Types | |
using | Handle = QExplicitlySharedDataPointer<Handle_> |
Public Member Functions | |
ReusableResource (bool _free_resources=true) | |
Handle | get () |
Public Attributes | |
bool | m_free_resources |
QMutex | m_mutex |
QList< _T_ * > | m_available |
QList< _T_ * > | m_resources |
Allow to define a ressource that can only be used by one thread at a time but can be reused between threads