Hi Luigi
even though I currently use a solution very simillar to the "generalized-sessions" I'd now prefer the thread-local-singleton because the contract does not depend on an external sessionId function. If we change the singleton implementation then IMO we should also change the observer/observable implementation to use boost::signal2 in order to make this pattern more thread-safe (I can provide an signal2 based implementation if you want).
regards
Klaus
On Wednesday, June 12, 2013 04:00:01 PM Luigi Ballabio wrote:
> Hi all,
> I've just pushed on GitHub two branches with contributions from
> mortoray and Riccardo Ghetta. The first is at
> <https://github.com/lballabio/quantlib/tree/generalized-sessions> and
> provides a generalized mechanism to provide multiple sessions in
> multi-threaded programs using QuantLib. The second is at
> <https://github.com/lballabio/quantlib/tree/thread-local-singleton>
> and implements a simpler modification that causes each thread to have
> its own session. I'd be grateful if someone could check them out, try
> them, and comment.
>
> Thanks,
> Luigi
>
> ----------------------------------------------------------------------------
> -- This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> QuantLib-users mailing list
> https://lists.sourceforge.net/lists/listinfo/quantlib-users
Free forum by Nabble | Disable Popup Ads | Edit this page |