Struct hazard::Hazard [] [src]

#[repr(C)]
pub struct Hazard<T, M> where M: Memory { /* fields omitted */ }

A collection of pointers considered hazardous.

Methods

impl<T, M> Hazard<T, M> where M: Memory
[src]

Constructs a new Hazard.

The maximum number of threads is specified by threads and the maximum number of hazardous pointers per thread is specified by domains.

The maximum size lists of retired pointers can grow to is specified by threshold. Once a list of retired pointers reaches this limit, any pointers that are no longer hazardous are removed from the list and the memory they refer to is deallocated.

Sets the hazardous pointer for the supplied domain using the supplied thread.

Clears the hazardous pointer for the supplied domain using the supplied thread.

Returns whether the supplied pointer is considered hazardous.

Retires the supplied pointer using the supplied thread.

Trait Implementations

impl<T, M> Drop for Hazard<T, M> where M: Memory
[src]

A method called when the value goes out of scope. Read more

impl<T, M> Debug for Hazard<T, M> where M: Memory
[src]

Formats the value using the given formatter.