Made Lock and Unlock functions public.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@782 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
1ecc9448b9
commit
d560a3f491
1 changed files with 12 additions and 10 deletions
|
@ -623,6 +623,18 @@ private:
|
|||
|
||||
class LOKI_EXPORT LockableTwoRefCounts
|
||||
{
|
||||
public:
|
||||
|
||||
inline void Lock( void ) const
|
||||
{
|
||||
m_counts->Lock();
|
||||
}
|
||||
|
||||
inline void Unlock( void ) const
|
||||
{
|
||||
m_counts->Unlock();
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
explicit LockableTwoRefCounts( bool strong );
|
||||
|
@ -635,16 +647,6 @@ protected:
|
|||
Increment( strong );
|
||||
}
|
||||
|
||||
inline void Lock( void ) const
|
||||
{
|
||||
m_counts->Lock();
|
||||
}
|
||||
|
||||
inline void Unlock( void ) const
|
||||
{
|
||||
m_counts->Unlock();
|
||||
}
|
||||
|
||||
inline bool Release( bool strong )
|
||||
{
|
||||
return Decrement( strong );
|
||||
|
|
Loading…
Add table
Reference in a new issue