ThreadContext
Attributes
- Source
- Mcas.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Abstract methods
The Mcas instance from which this context was retrieved
Attributes
- Returns
-
a
ThreadLocalRandomvalid for the current thread - Source
- Mcas.scala
Attributes
- Returns
-
the current value of
ref, as if read byreadIntoHwd(ref).nv. - Source
- Mcas.scala
Attributes
- Returns
-
the current value and version of
refin a word descriptor object. The value and version are guaranteed to be consistent with each other. The descriptor's.ovand.nvare guaranteed to be the same. - Source
- Mcas.scala
Attributes
- Returns
-
the
RefIdGenof the current thread (or a thread-safe one) - Source
- Mcas.scala
Reads the global version, and Starts building a descriptor (its .validTs will be the current global version).
Reads the global version, and Starts building a descriptor (its .validTs will be the current global version).
Attributes
- Source
- Mcas.scala
Attributes
- Source
- Mcas.scala
Concrete methods
Attributes
- Source
- Mcas.scala
Attributes
- Source
- Mcas.scala
Utility to first try to read from the log, and only from the ref if not found
Utility to first try to read from the log, and only from the ref if not found
Attributes
- Source
- Mcas.scala
Tries to perform a "bare" 1-CAS, without changing the global version.
Tries to perform a "bare" 1-CAS, without changing the global version. This breaks opacity guarantees! It may change the value of a ref without changing its version!
Attributes
- Source
- Mcas.scala
Attributes
- Returns
-
a snapshot of
desc. - Source
- Mcas.scala
Tries to perform the ops in desc, with adding a version-CAS (if not read-only).
Tries to perform the ops in desc, with adding a version-CAS (if not read-only).
Attributes
- Returns
-
either
EmcasStatus.Successful(if successful);EmcasStatus.FailedVal(if failed due to an expected value not matching); or the current global version (if failed due to the version being newer thandesc.validTs). - Source
- Mcas.scala
Attributes
- Source
- Mcas.scala
Attributes
- Source
- Mcas.scala
Like tryPerform, but returns whether it was successful
Tries to perform a 1-CAS, but also handles versions.
Tries to perform a 1-CAS, but also handles versions. Equivalent to creating a descriptor containing a single op, and calling tryPerformOk on it (but may be more efficient).
Attributes
- Source
- Mcas.scala