libparanut
A Hardware Abstraction Layer for ParaNut Architectures.
|
Contains architecture independent implementations of the Spinlock Module functions. More...
Functions | |
int | pn_spinlock_init (_pn_spinlock *spinlock) |
Creates a lock. More... | |
int | pn_spinlock_lock (_pn_spinlock *spinlock) |
Waits for a lock. Forever, if it must. Use with caution. More... | |
int | pn_spinlock_trylock (_pn_spinlock *spinlock) |
Tries to acquire a lock. Nonblocking. More... | |
int | pn_spinlock_unlock (_pn_spinlock *spinlock) |
Unlocks a lock. More... | |
int | pn_spinlock_destroy (_pn_spinlock *spinlock) |
Destroys a lock. More... | |
Contains architecture independent implementations of the Spinlock Module functions.