17 May
2009
17 May
'09
2:24 p.m.
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.