Boost logo

Boost :

From: schalk_cronje_at_[hidden]
Date: 2002-01-31 10:33:50


> public:
> typedef <i>Implementation Defined</i> cv_state;
> static void lock(Mutex& mutex);
> static void trylock(Mutex& mutex);
> static void timedlock(Mutex& mutex);
> static void unlock(Mutex& mutex);
> static void lock(Mutex& mutex, cv_state& state);
> static void unlock(Mutex& mutex, const cv_state& state);
> };

The kind of approach (be it via traits or not) can be applied to many kinds
of resource locking - co-operative file locking between processes being one.
I think it would be worthwhile to keep the generalisation in mind.

----------------------------------[ .signature ]---
Schalk W. Cronjé,
Webshield Engineering, Network Associates.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk