TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
Public Member Functions | List of all members
cpid::priority_lock Class Reference

This is exactly an unique_lock without automatic lock, except that the lock functions accepts a priority. More...

#include <prioritymutex.h>

Public Member Functions

 priority_lock ()=default
 
 priority_lock (priority_mutex &m, int default_prio=0)
 
 priority_lock (const priority_lock &)=delete
 
priority_lockoperator= (const priority_lock &)=delete
 
 ~priority_lock ()
 
void operator= (priority_lock &&o)
 
void lock (int prio)
 
void lock ()
 
void unlock ()
 
bool try_lock (int prio)
 
bool owns_lock ()
 

Detailed Description

This is exactly an unique_lock without automatic lock, except that the lock functions accepts a priority.

Constructor & Destructor Documentation

cpid::priority_lock::priority_lock ( )
default
cpid::priority_lock::priority_lock ( priority_mutex m,
int  default_prio = 0 
)
inlineexplicit
cpid::priority_lock::priority_lock ( const priority_lock )
delete
cpid::priority_lock::~priority_lock ( )
inline

Member Function Documentation

void cpid::priority_lock::lock ( int  prio)
inline
void cpid::priority_lock::lock ( )
inline
priority_lock& cpid::priority_lock::operator= ( const priority_lock )
delete
void cpid::priority_lock::operator= ( priority_lock &&  o)
inline
bool cpid::priority_lock::owns_lock ( )
inline
bool cpid::priority_lock::try_lock ( int  prio)
inline
void cpid::priority_lock::unlock ( )
inline

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