If you can read this text, it means you are not experiencing this website at its best. This website is designed for used with a standards-compliant browser.
Current version: 2.3.2
ZThreads
A platform-independent, multi-threading and synchronization library for C++
Home Documentation Downloads CVS Contact
ClassLockable< ClassType, LockType > Class Template Reference

#include <ClassLockable.h>

Inheritance diagram for ClassLockable< ClassType, LockType >:
Lockable

Public Member Functions

 ClassLockable ()
 Create a ClassLockable.
 
virtual void acquire ()
 acquire() the ClassLockable More...
 
virtual bool tryAcquire (unsigned long timeout)
 tryAcquire() the ClassLockable More...
 
virtual void release ()
 release() the ClassLockable More...
 
- Public Member Functions inherited from Lockable
virtual ~Lockable ()
 Destroy a Lockable object.
 
virtual void acquire ()=0
 
virtual bool tryAcquire (unsigned long timeout)=0
 
virtual void release ()=0
 

Detailed Description

template<typename ClassType, class LockType = Mutex>
class ZThread::ClassLockable< ClassType, LockType >
Author
Eric Crahen http://www.code-foo.com
Date
<2003-07-16T23:37:38-0400>
Version
2.3.0

Member Function Documentation

◆ acquire()

virtual void acquire ( )
inlinevirtual

acquire() the ClassLockable

Implements Lockable.

◆ release()

virtual void release ( )
inlinevirtual

release() the ClassLockable

Implements Lockable.

◆ tryAcquire()

virtual bool tryAcquire ( unsigned long  timeout)
inlinevirtual

The documentation for this class was generated from the following file: