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.
 

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