diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-02-05 15:41:56 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-02-05 15:41:56 +0200 |
commit | 20daa3c4285c91dfcd35361f6550f80315e008a5 (patch) | |
tree | f5bafa283fffbaad5bde33c9a8158b46d2c12e20 /odb/transaction.hxx | |
parent | 1fa74e93cbc6ec0cc8ca8e6b653d1b530c01744a (diff) |
Add support for updating callback registration
Diffstat (limited to 'odb/transaction.hxx')
-rw-r--r-- | odb/transaction.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/odb/transaction.hxx b/odb/transaction.hxx index 1f7b866..e035661 100644 --- a/odb/transaction.hxx +++ b/odb/transaction.hxx @@ -136,6 +136,12 @@ namespace odb void unregister (void* key); + // Update the data and state values for a callback. Note that just + // like unregister(), this is a potentially slow operation. + // + void + update (void* key, unsigned long long data, transaction** state = 0); + public: transaction_impl& implementation (); @@ -149,6 +155,9 @@ namespace odb protected: friend struct rollback_guard; + std::size_t + find (void* key); + void call (unsigned short event); |