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
TimedLockedScope< TimeOut > Class Template Reference

#include <Guard.h>

Static Public Member Functions

template<class LockType1 , class LockType2 >
static void shareScope (LockHolder< LockType1 > &l1, LockHolder< LockType2 > &l2)
 
template<class LockType >
static void createScope (LockHolder< LockType > &l)
 
template<class LockType >
static void destroyScope (LockHolder< LockType > &l)
 

Detailed Description

template<int TimeOut>
class ZThread::TimedLockedScope< TimeOut >
Author
Eric Crahen http://www.code-foo.com
Date
<2003-07-16T17:55:42-0400>
Version
2.2.0

Locking policy that attempts to enterScope some resource in a certain amount of time using an tryEnterScope-relase protocol.

Member Function Documentation

◆ shareScope()

static void shareScope ( LockHolder< LockType1 > &  l1,
LockHolder< LockType2 > &  l2 
)
inlinestatic

Try to enterScope the given LockHolder.

Parameters
lockLockType& is a type of LockHolder.

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