From 1246355c4c2ed8cd81a6baed380685e32414133a Mon Sep 17 00:00:00 2001 From: torvald Date: Wed, 13 Jan 2016 12:40:34 +0000 Subject: 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 --- libitm/dispatch.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libitm/dispatch.h') 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. -- cgit v1.2.3