On Tue, Apr 19, 2011 at 8:07 PM, Wim Dumon <[email protected]> wrote: > Hey Gaetano, > > In such cases, I tend to use a shared_pointer to manage the lifetime > of the WtTerminal object. As such, the DTOR would be called after the > queued posts have disappeared.
Can the boost::bind get a shared_ptr instead of a plain pointer? Never tried to be honest. > I'll let Koen comment on the proposed modification to post(). Similar > to shared_pointer, if you pass an object with a special destructor > that tells WtTerminal when it's destroyed, you could get WtTerminal to > count how many of your messages are still unhandled in the post() > queue. But that's a bit more clumsy for the user, I guess. It is indeed. What would be usefull to know is the following: After the WApplication::finalize is called, can I consider all the post for that given session going to be not called ? Regards Gaetano -- cpp-today.blogspot.com ------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
