Boost logo

Boost Users :

From: Mark Sizer (yg-boost-users_at_[hidden])
Date: 2003-05-13 12:17:49


Is there a convention about whether or not to explicitly call .unlock()?

In the case where everything to the end of the scope should be locked,
there is no NEED to do it, but isn't it a bit sloppy to leave locks locked?

Much like not using braces on one-line 'if' statements, it could cause
maintenance problems later.

What's the current thinking?

Thanks,
  - Mark

P.S. I'm currently always unlocking, because sometimes I want to unlock
before the scope ends. This makes it clear exactly what I intend.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net