diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-03-15 16:27:03 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-03-15 16:27:03 +0200 |
commit | 842e37f7372fbfaf7cc5aa422e5c20a28f5d5d61 (patch) | |
tree | 7b83d57a4a585458bfa9c9afebb01d0ff44797f4 /odb/mysql/connection-factory.hxx | |
parent | 32d0e84aa093f8dfcb64ba111cc5f6640fd3869d (diff) |
Change shared_ptr callback interface to work in mt-environment
Diffstat (limited to 'odb/mysql/connection-factory.hxx')
-rw-r--r-- | odb/mysql/connection-factory.hxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/odb/mysql/connection-factory.hxx b/odb/mysql/connection-factory.hxx index 43d6f9f..eb7380c 100644 --- a/odb/mysql/connection-factory.hxx +++ b/odb/mysql/connection-factory.hxx @@ -119,7 +119,7 @@ namespace odb pooled_connection (database_type&, connection_pool_factory*); private: - static void + static bool zero_counter (void*); private: @@ -133,7 +133,9 @@ namespace odb typedef std::vector<details::shared_ptr<pooled_connection> > connections; private: - void + // Return true if the connection should be deleted, false otherwise. + // + bool release (pooled_connection*); private: |