diff options
author | torvald <torvald@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-01-13 12:40:34 +0000 |
---|---|---|
committer | torvald <torvald@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-01-13 12:40:34 +0000 |
commit | 1246355c4c2ed8cd81a6baed380685e32414133a (patch) | |
tree | 0f4bfc83fa01d0a035d86c869e199905d89075cb /libitm/dispatch.h | |
parent | 2e1cb7c04a9c5336615dfafdee1cb7fc1caf7559 (diff) |
libitm: Fix privatization safety interaction with serial mode.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@232322 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libitm/dispatch.h')
-rw-r--r-- | libitm/dispatch.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libitm/dispatch.h b/libitm/dispatch.h index 0bf1a81b35e5..4ec563158293 100644 --- a/libitm/dispatch.h +++ b/libitm/dispatch.h @@ -291,6 +291,10 @@ public: // Rolls back a transaction. Called on abort or after trycommit() returned // false. virtual void rollback(gtm_transaction_cp *cp = 0) = 0; + // Returns true iff the snapshot is most recent, which will be the case if + // this transaction cannot be the reason why other transactions cannot + // ensure privatization safety. + virtual bool snapshot_most_recent() = 0; // Return an alternative method that is compatible with the current // method but supports closed nesting. Return zero if there is none. |