pthread_spinlock_t Struct Reference

A spinlock. More...

Detailed Description

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 35 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: