[][src]Crate sled_sync

Modules

atomic

Atomic types

Structs

Atomic

An atomic pointer that can be safely shared between threads.

Backoff

Performs exponential backoff in spin loops.

Collector

An epoch-based garbage collector.

CompareAndSetError

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

Guard

A guard that keeps the current thread pinned.

LocalHandle

A handle to a garbage collector.

Owned

An owned heap-allocated object.

Shared

A pointer to an object protected by the epoch GC.

Functions

debug_delay

This function is useful for inducing random jitter into our atomic operations, shaking out more possible interleavings quickly. It gets fully elliminated by the compiler in non-test code.

pin

Pins the current thread.

unprotected

Returns a reference to a dummy guard that allows unprotected access to Atomics.