TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
Public Member Functions | List of all members
cpid::permanent_lock< Mutex_t > Class Template Reference

This exactly a unique lock that doesn't unlock on delete. More...

#include <prioritymutex.h>

Public Member Functions

 permanent_lock ()=default
 
 permanent_lock (Mutex_t &m_)
 
 permanent_lock (const permanent_lock &)=delete
 
permanent_lockoperator= (const permanent_lock &)=delete
 
 ~permanent_lock ()
 
void operator= (permanent_lock &&o)
 
void lock ()
 
void unlock ()
 
bool owns_lock ()
 

Detailed Description

template<typename Mutex_t>
class cpid::permanent_lock< Mutex_t >

This exactly a unique lock that doesn't unlock on delete.

Constructor & Destructor Documentation

template<typename Mutex_t>
cpid::permanent_lock< Mutex_t >::permanent_lock ( )
default
template<typename Mutex_t>
cpid::permanent_lock< Mutex_t >::permanent_lock ( Mutex_t &  m_)
inlineexplicit
template<typename Mutex_t>
cpid::permanent_lock< Mutex_t >::permanent_lock ( const permanent_lock< Mutex_t > &  )
delete
template<typename Mutex_t>
cpid::permanent_lock< Mutex_t >::~permanent_lock ( )
inline

Member Function Documentation

template<typename Mutex_t >
void cpid::permanent_lock< Mutex_t >::lock ( )
template<typename Mutex_t>
permanent_lock& cpid::permanent_lock< Mutex_t >::operator= ( const permanent_lock< Mutex_t > &  )
delete
template<typename Mutex_t >
void cpid::permanent_lock< Mutex_t >::operator= ( permanent_lock< Mutex_t > &&  o)
template<typename Mutex_t >
bool cpid::permanent_lock< Mutex_t >::owns_lock ( )
template<typename Mutex_t >
void cpid::permanent_lock< Mutex_t >::unlock ( )

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