Boost logo

Boost :

From: Kevin Atkinson (kevin_at_[hidden])
Date: 2003-03-01 10:17:46

On Sat, 1 Mar 2003, Thorsten Ottosen wrote:

> First I want to say that I'm not experienced with multitherading, but I
> would like to see a standard lib
> to solve these situations.
> A small question about enforcing correct parameter passing: you have these
> typedefs :
> // These locks should never be passed by value to functions.
> // Instead use the following typedef to pass by reference:
> typedef const LockOnly & WillOnlyLock;
> typedef const Lock & WillLock;
> typedef const UnlockOnly & WillOnlyUnlock;
> typedef const Unlock & WillUnlock;
> Is this the best way to enforce this? Why not just make lock objects
> noncopyable?

Um, they are. This typedef are strictly for convenience and readability.


Boost list run by bdawes at, gregod at, cpdaniel at, john at