Boost logo

Boost Users :

From: Spencer Collyer (spencer_at_[hidden])
Date: 2006-07-02 07:58:06


On Fri, 30 Jun 2006 12:26:57 +0200, Mattias Brändström wrote:
> <snip>
>
> The purpose of this class is to lock a mutex before each method call on
> an object of class T, and unlock the mutex when that call returns. It
> seems that this would be something that one would like to have in some
> cases. Maybe so many cases that it might be part of boost somewhere? I
> haven't found any library in boost that does this. Is there one?
>
> I haven't done anything like this before so it would be nice if anyone
> here could make some comments on the code. Will it do what I think it
> does or will it blow up in my face? :-)
>
> Regards,
> Mattias

Andrei Alexandrescu had something similar in the article
http://www.ddj.com/dept/cpp/184403766.

S>

-- 
<<< Eagles may soar, but weasels don't get sucked into jet engines >>>
12:57pm up 20 days 22:24, 13 users, load average: 0.09, 0.06, 0.05
Registered Linux User #232457 | LFS ID 11703

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