TxnContext

trait TxnContext

TxnContext captures the implementation-specific functionality of locating the InTxn dynamically bound to the current Thread. Users should use the lookup methods provided by object Txn.

TxnContext captures the implementation-specific functionality of locating the InTxn dynamically bound to the current Thread. Users should use the lookup methods provided by object Txn.

Authors

Nathan Bronson

class Object
trait Matchable
class Any
trait STMImpl
class CCSTM

Value members

Abstract methods

Returns the current InTxn instance if it is active or in the process of committing on the current thread, null otherwise. Always performs a dynamic lookup.

Returns the current InTxn instance if it is active or in the process of committing on the current thread, null otherwise. Always performs a dynamic lookup.

def findCurrent(mt: MaybeTxn): Option[InTxn]

Returns Some(txn) if txn is the InTxn active or in the process of committing on the current thread, None otherwise.

Returns Some(txn) if txn is the InTxn active or in the process of committing on the current thread, None otherwise.