Home You are here: Home > Support > Reference v1.0

Change language: German

XmSingleLock Class Reference

List of all members.

Detailed Description

Helper class used to simplify implementation of XmLock::lock() and XmLock::unlock() sequences.

The constructor will lock the specified synchronization object and the destructor release it. Using this class avoid mistakes of forgotten calls to lock() or unlock(). E.g. when leaving in the middle of a function by return.


Public Member Functions

 XmSingleLock (XmLock &lockRef)
 Lock the specified synchronization object.
 ~XmSingleLock ()
 Unlock the specified synchronization object.

Copyright © 2006 Praetz Software Development - www.exomware.com