ObjectLevelLockable: add copy ctor which creates a new mutex. Thanks to sourceforge::horodrigues
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@170 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
c33413b35c
commit
baa2869479
1 changed files with 5 additions and 0 deletions
|
@ -81,6 +81,11 @@ namespace Loki
|
||||||
::InitializeCriticalSection(&mtx_);
|
::InitializeCriticalSection(&mtx_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ObjectLevelLockable( const ObjectLevelLockable& )
|
||||||
|
{
|
||||||
|
::InitializeCriticalSection(&mtx_);
|
||||||
|
}
|
||||||
|
|
||||||
~ObjectLevelLockable()
|
~ObjectLevelLockable()
|
||||||
{
|
{
|
||||||
::DeleteCriticalSection(&mtx_);
|
::DeleteCriticalSection(&mtx_);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue