diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-03-15 16:26:03 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-03-15 16:26:03 +0200 |
commit | cdb8876ff271ce235c2f02a917a0c79a37d5c4b0 (patch) | |
tree | c065a0b7bb79caf81baad1593787bca6efe46d52 /odb/details/shared-ptr/base.hxx | |
parent | 31633fe1b9ad734434dd8c0121fe86233c15a142 (diff) |
Change shared_ptr callback interface to work in mt-environment
Diffstat (limited to 'odb/details/shared-ptr/base.hxx')
-rw-r--r-- | odb/details/shared-ptr/base.hxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/odb/details/shared-ptr/base.hxx b/odb/details/shared-ptr/base.hxx index e75fb4a..7cf44da 100644 --- a/odb/details/shared-ptr/base.hxx +++ b/odb/details/shared-ptr/base.hxx @@ -80,7 +80,10 @@ namespace odb struct refcount_callback { void* arg; - void (*zero_counter) (void*); + + // Return true if the object should be deleted, false otherwise. + // + bool (*zero_counter) (void*); }; private: |