Loading...
Searching...
No Matches
pthread_spinlock_t Struct Reference

A spinlock. More...

Detailed Description

A spinlock.

Warning
Spinlocks should be avoided. They will burn away the battery needlessly, and may not work because RIOT is tickless. Use irq_disable() and irq_restore() for shortterm locks instead.

Definition at line 36 of file pthread_spin.h.

#include <pthread_spin.h>

Data Fields

atomic_flag flag
 Current lock state.
 

Field Documentation

◆ flag

atomic_flag pthread_spinlock_t::flag

Current lock state.

Definition at line 37 of file pthread_spin.h.


The documentation for this struct was generated from the following file: