Module atomic

Source

Structsยง

Array ๐Ÿ”’
Array with size.
Atomic
An atomic pointer that can be safely shared between threads.
CompareExchangeError
The error returned on failed compare-and-swap operation.
Owned
An owned heap-allocated object.
Shared
A pointer to an object protected by the epoch GC.

Traitsยง

CompareAndSetOrderingDeprecated
Memory orderings for compare-and-set operations.
Pointable
Types that are pointed to by a single word.
Pointer
A trait for either Owned or Shared pointers.

Functionsยง

compose_tag ๐Ÿ”’
Given a tagged pointer data, returns the same pointer, but tagged with tag.
decompose_tag ๐Ÿ”’
Decomposes a tagged pointer data into the pointer and the tag.
ensure_aligned ๐Ÿ”’
Panics if the pointer is not properly unaligned.
low_bits ๐Ÿ”’
Returns a bitmask containing the unused least significant bits of an aligned pointer to T.
strongest_failure_ordering ๐Ÿ”’
Given ordering for the success case in a compare-exchange operation, returns the strongest appropriate ordering for the failure case.

Type Aliasesยง

CompareAndSetErrorDeprecated
The error returned on failed compare-and-set operation.