1 #ifndef cetlib_sqlite_ConnectionFactory_h 2 #define cetlib_sqlite_ConnectionFactory_h 46 typename... PolicyArgs>
55 template <
typename DatabaseOpenPolicy,
typename... PolicyArgs>
61 std::lock_guard sentry{
mutex_};
65 if (!shared_ptr_to_mutex) {
68 std::make_shared<std::recursive_mutex>();
73 DatabaseOpenPolicy{std::forward<PolicyArgs>(policyArgs)...}};
auto make_connection(std::string const &file_name, PolicyArgs &&...) -> Connection *
std::map< std::string, std::weak_ptr< std::recursive_mutex > > databaseLocks_
std::recursive_mutex mutex_