[Cppcms-users] @pool_size passed to cppdb::connection
Brought to you by:
artyom-beilis
From: CN <cn...@fa...> - 2015-12-27 07:27:38
|
Hi! Suppose each synchronous application establishes exact one cppdb::connection passed with @pool_size=3. Imagine now there are 3 synchronous applications concurrently running in 3 threads. What will happen if a synchronous application is launched to run as the 4th thread? Will it be blocked at cppdb::connection myconn("...@pool_size=3...") until some other thread finished its use of cppdb::connection, or the 4th instance of cppdb::connection will be created by the 4th thread regardless of the "limit" imposed by the parameter @pool_size=3? Thank you in advance for the clarification! Best Reagards, CN -- http://www.fastmail.com - Or how I learned to stop worrying and love email again |