Boost logo

Boost Users :

Subject: Re: [Boost-users] [signals2] connection blocking
From: Frank Mori Hess (fmhess_at_[hidden])
Date: 2009-05-17 10:24:45


On Friday 15 May 2009, Bryan Green wrote:
> It is obviously awkward to be forced to convert this code to use an RAII
> object, and I'd rather not do a full connect/disconnect for this state
> change. What do you think? Should I be thinking about this
> differently? Or can a good case be made for bringing back the
> block()/unblock() methods?

Is it really so awkward? shared_connection_block has block/unblock
methods. The shared_connection_block constructor does always immediately
block the connection though, maybe adding a constructor which defers
blocking would help.




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