Interface: critical section management. More...
#include <config.h>
Go to the source code of this file.
Typedefs | |
typedef volatile unsigned char | atomic_t |
The data type that allows for atomic count operations. |
Functions | |
void | atomic_dec (atomic_t *counter) |
decrement atomic counter without interruption. | |
void | atomic_inc (atomic_t *counter) |
increment atomic counter without interruption. |
Interface: critical section management.
Defines types and functions to implement atomic counters.
Definition in file atomic.h.
typedef volatile unsigned char atomic_t |
The data type that allows for atomic count operations.
void atomic_dec | ( | atomic_t * | counter | ) |
decrement atomic counter without interruption.
locks interrupts except NMI, decrements count then restores interrupts.
counter | the counter resource to be decremented |
void atomic_inc | ( | atomic_t * | counter | ) |
increment atomic counter without interruption.
locks interrupts except NMI, increments count then restores interrupts.
counter | the counter resource to be incremented |
brickOS is released under the
Mozilla Public License.
Original code copyright 1998-2005 by the authors. |