[Cppcms-users] singleton per thread
Brought to you by:
artyom-beilis
From: Daniel V. <chi...@gm...> - 2010-09-28 17:44:29
|
Hello. I use soci for database access. The soci session object is not "thread safe". AFAIK each cppcms::application object runs in a thread. Then I need a "singleton per thread" or "thread local storage". How to accomplish this with cppcms? I try to use "boost::thread_specific_ptr" with no luck (segmentation fault). Thanks. |