Struct std::sync::Spinlock

struct Spinlock { ... }

A spinlock.

Dangerous to use in userspace, do not use unless you know what you're doing. Can lead to priority inversion and other nasty stuff. Prefer to use Mutex instead.

Example

Fields

Methods

impl Spinlock { ... }