DD::Image::TryWriteGuard Class Reference

Inherits DD::Image::BaseReadWriteGuard.

List of all members.

Public Member Functions

 TryWriteGuard (ReadWriteLock &m)
 TryWriteGuard (ReadWriteLock *m)
bool isLocked () const


Detailed Description

guard that performs a try write lock on ctor and on lock on dtor. Use for scoping a read/write lock to get automatic unlocking


©2009 The Foundry Visionmongers, Ltd. All Rights Reserved.
www.thefoundry.co.uk