[][src]Struct vst::util::AtomicFloat

pub struct AtomicFloat { /* fields omitted */ }

Simple atomic floating point variable with relaxed ordering.

Designed for the common case of sharing VST parameters between multiple threads when no synchronization or change notification is needed.

Methods

impl AtomicFloat[src]

pub fn new(value: f32) -> AtomicFloat[src]

New atomic float with initial value value.

pub fn get(&self) -> f32[src]

Get the current value of the atomic float.

pub fn set(&self, value: f32)[src]

Set the value of the atomic float to value.

Auto Trait Implementations

impl RefUnwindSafe for AtomicFloat

impl Send for AtomicFloat

impl Sync for AtomicFloat

impl Unpin for AtomicFloat

impl UnwindSafe for AtomicFloat

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.