Login  Register

Re: Prototype changes to sessions and singletons

Posted by Klaus Spanderen-2 on Jun 15, 2013; 2:54pm
URL: http://quantlib.414.s1.nabble.com/Prototype-changes-to-sessions-and-singletons-tp14360p14376.html

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

> [hidden email]

> https://lists.sourceforge.net/lists/listinfo/quantlib-users


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users