Main Page   File List  

lock_wq.h File Reference

Better lock implementation (in comparison to lock.h). More...

Go to the source code of this file.

Data Structures

struct  l4util_wq_lock_queue_elem_t
struct  l4util_wq_lock_queue_base_t

Functions

static int l4util_wq_lock_lock (l4util_wq_lock_queue_base_t *queue, l4util_wq_lock_queue_elem_t *q)
static int l4util_wq_lock_unlock (l4util_wq_lock_queue_base_t *queue, l4util_wq_lock_queue_elem_t *q)
static int l4util_wq_lock_locked (l4util_wq_lock_queue_base_t *queue)


Detailed Description

Better lock implementation (in comparison to lock.h).

In the case of contention we are going into sleep and wait for the current locker to be woken up. Nevertheless this code has some limitations considering different thread priorities.

Author:
Jork Loeser <hohmuth@os.inf.tu-dresden.de>

Definition in file lock_wq.h.


L4 Utilities, part of DROPS  © 2000-2003