Boost logo

Boost :

From: Lie-Quan Lee (llee1_at_[hidden])
Date: 2001-03-19 15:58:55


I looked the several boost threading doucments including Jeremy Siek's
synchronization concepts and Bill Kempf's draft implementation. It
looks like the interfaces for lock are like following:
  typedef typename mutex::lock Guard;
  typedef typename mutex::trylock TryGuard;
  typedef typename mutex::timedlock TimedGuard;

Would be better to have a traits to get the type of locks like:
  typedef typename lock_categories<mutex>::lock Guard;
  typedef typename lock_categories<mutex>::trylock TryGuard;
  typedef typename lock_categories<mutex>::timedlock TimedGuard;

I did a quick search in boost archive and did not see a discussion on
that in both discussion phases(one was last summer, the other is since
last week). Maybe I missed it.

--
Lie-Quan Lee

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