Boost logo

Boost :

From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2003-03-01 05:51:41


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?

ragards

Thorsten


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