EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Lockable Class Referenceabstract

Basic interface of a lockable object. More...

#include "Lock.h"

Inheritance diagram for Lockable:

Public Member Functions

virtual void Lock ()=0
 Locks the object. More...
 
virtual bool TryLock ()=0
 Attempts to lock the object. More...
 
virtual void Unlock ()=0
 Unlocks a locked object. More...
 

Detailed Description

Basic interface of a lockable object.

Author
Bloody.Rabbit

Definition at line 34 of file Lock.h.

Member Function Documentation

virtual void Lockable::Lock ( )
pure virtual

Locks the object.

This method will block until the lock has been obtained.

Implemented in Mutex.

virtual bool Lockable::TryLock ( )
pure virtual

Attempts to lock the object.

If the lock cannot be obtained immediately, the method returns.

Return values
trueThe object has been locked.
falseCould not obtain the lock immediately.

Implemented in Mutex.

virtual void Lockable::Unlock ( )
pure virtual

Unlocks a locked object.

Implemented in Mutex.


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