ThreadContext
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Members list
Value members
Abstract methods
Attributes
- Returns:
a
ThreadLocalRandom
valid for the current thread
Attributes
- Returns:
the current value of
ref
, as if read byreadIntoHwd(ref).nv
.
Attributes
- Returns:
the current value and version of
ref
in a word descriptor object. The value and version are guaranteed to be consistent with each other. The descriptor's.ov
and.nv
are guaranteed to be the same.
Starts building a descriptor
(its .validTs
will be the
current global sersion).
Starts building a descriptor
(its .validTs
will be the
current global sersion).
Attributes
Concrete methods
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
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!
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
Attributes
- Returns:
a snapshot of
desc
.
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
).
Like tryPerform
, but returns whether it was successful
Like tryPerform
, but returns whether it was successful
Attributes
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).
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).