Introduction   API Reference   Examples   Index  

lock.h File Reference

Simple L4 locks. More...

#include <l4/env/cdefs.h>
#include <l4/semaphore/semaphore.h>
#include <l4/lock/types.h>

Go to the source code of this file.

Functions

L4_INLINE void l4lock_lock (l4lock_t *lock)
 Occupy lock.
L4_INLINE int l4lock_try_lock (l4lock_t *lock)
 Try to occupy lock, return error if lock already owned by someone else.
L4_INLINE void l4lock_unlock (l4lock_t *lock)
 Release lock.
L4_INLINE l4thread_t l4lock_owner (const l4lock_t *lock)
 Return lock owner.


Detailed Description

Simple L4 locks.

Date:
12/30/2000
Author:
Lars Reuther <reuther@os.inf.tu-dresden.de>
Simple, semaphore-based lock implementation.

Definition in file lock.h.


L4 Lock Reference Manual, written by Lars Reuther  © 2000-2003