CTlLocalLock Class ReferenceUse this to lock and automatically unlock CTlLock objects.
More...
#include <ThreadSafe.h>
Collaboration diagram for CTlLocalLock:
[legend]List of all members.
Detailed Description
Use this to lock and automatically unlock CTlLock objects.
Use this to lock and automatically unlock CTlLock objects
Constructor & Destructor Documentation
| CTlLocalLock::CTlLocalLock |
( |
CTlLock * |
ptr, |
|
|
DWORD |
timeout = 3000 |
|
) |
[inline] |
|
|
|
Constructor - Takes a CTlLock pointer.
- Parameters:
-
| [in] | ptr | - Pointer to CTlLock object |
| [in] | timeout | - Maximum time in milli-seconds to wait for lock. |
|
| CTlLocalLock::CTlLocalLock |
( |
CTlLock & |
lock, |
|
|
DWORD |
timeout = 3000 |
|
) |
[inline] |
|
|
|
Constructor - Takes a CTlLock reference.
- Parameters:
-
| [in] | lock | - Reference to CTlLock object |
| [in] | timeout | - Maximum time in milli-seconds to wait for lock. |
|
Member Function Documentation
| BOOL CTlLocalLock::Lock |
( |
CTlLock * |
ptr, |
|
|
DWORD |
timeout = 3000 |
|
) |
[inline] |
|
|
|
Locks a CTlLock object. Returns true only if lock was achieved.
- Parameters:
-
| [in] | ptr | - Pointer to CTlLock object |
| [in] | timeout | - Maximum time in milli-seconds to wait for lock. |
- Returns:
- Non-zero if lock was acquired.
- See also:
|
| BOOL CTlLocalLock::Unlock |
( |
|
) |
[inline] |
|
|
|
Unlocks attached CTlLock object.
- Returns:
- Always returns non-zero
|
The documentation for this class was generated from the following file:
|