blender/intern/audaspace/intern/AUD_ILockable.h
Joerg Mueller e66ee1ca9f Audaspace:
RAII locking implementation. This should fix bug [#32096] Background music stops when playing 3D sounds.
2012-10-24 21:33:44 +00:00

22 lines
381 B
C++

#ifndef AUD_ILOCKABLE_H
#define AUD_ILOCKABLE_H
/**
* This class provides an interface for lockable objects.
* The main reason for this interface is to be used with AUD_MutexLock.
*/
class AUD_ILockable
{
public:
/**
* Locks the object.
*/
virtual void lock()=0;
/**
* Unlocks the previously locked object.
*/
virtual void unlock()=0;
};
#endif // AUD_ILOCKABLE_H