Renamed Unlocker to remove compiler warning.

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1043 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
rich_sposato 2009-10-16 05:54:12 +00:00
parent 7d52fcdeb9
commit 65949024b3
2 changed files with 9 additions and 9 deletions

View file

@ -1,7 +1,7 @@
////////////////////////////////////////////////////////////////////////////////
//
// Part of LevelMutex test program for The Loki Library
// Copyright (c) 2008 Richard Sposato
// Copyright (c) 2008, 2009 Richard Sposato
// The copyright on this file is protected under the terms of the MIT license.
//
// Permission to use, copy, modify, distribute and sell this software for any
@ -855,7 +855,7 @@ void * SafeHierarchyTest( void * p )
{
thing = LevelThing::GetFromPool( ii );
assert( nullptr != thing );
LevelThing::Unlocker unlocker( thing->LockHierarchy() );
LevelThing::MyUnlocker unlocker( thing->LockHierarchy() );
(void)unlocker;
thing->SetValue( value );
::GoToSleep( 3 );
@ -867,7 +867,7 @@ void * SafeHierarchyTest( void * p )
const unsigned int randomIndex = ( ::rand() % thingCount );
thing = LevelThing::GetFromPool( randomIndex );
assert( nullptr != thing );
LevelThing::Unlocker unlocker( thing->LockHierarchy() );
LevelThing::MyUnlocker unlocker( thing->LockHierarchy() );
(void)unlocker;
thing->SetValue( value );
::GoToSleep( 3 );

View file

@ -1,12 +1,12 @@
////////////////////////////////////////////////////////////////////////////////
//
// Part of LevelMutex test program for The Loki Library
// Copyright (c) 2008 Richard Sposato
// Copyright (c) 2008, 2009 Richard Sposato
// The copyright on this file is protected under the terms of the MIT license.
//
// Permission to use, copy, modify, distribute and sell this software for any
// purpose is hereby granted without fee, provided that the above copyright
// notice appear in all copies and that both that copyright notice and this
// Permission to use, copy, modify, distribute and sell this software for any
// purpose is hereby granted without fee, provided that the above copyright
// notice appear in all copies and that both that copyright notice and this
// permission notice appear in supporting documentation.
//
// The author makes no representations about the suitability of this software
@ -207,7 +207,7 @@ class LevelThing
{
public:
typedef Unlocker< LevelThing > Unlocker;
typedef Unlocker< LevelThing > MyUnlocker;
static volatile LevelThing * GetFromPool( unsigned int index );
@ -215,7 +215,7 @@ public:
static void DestroyPool( void );
Unlocker LockHierarchy( void ) volatile;
MyUnlocker LockHierarchy( void ) volatile;
void UnlockHierarchy( void ) volatile;