1/*
2 * Copyright (c) 2012, ETH Zurich.
3 * All rights reserved.
4 *
5 * This file is distributed under the terms in the attached LICENSE file.
6 * If you do not find this file, copies can be found by writing to:
7 * ETH Zurich D-INFK, Universitaetstrasse 6, CH-8092 Zurich. Attn: Systems Group.
8 */
9
10#ifndef CAPLOCK_H
11#define CAPLOCK_H
12
13#include <barrelfish/caddr.h>
14#include <barrelfish/waitset.h>
15#include "capops.h"
16
17struct event_queue_node;
18
19void caplock_wait(struct domcapref cap,
20                  struct event_queue_node *qn, struct event_closure cont);
21
22void caplock_unlock(struct domcapref cap);
23
24void caplock_init(struct waitset *ws);
25
26#endif
27