1/** \file
2 *  \brief Simple name-server based barriers
3 */
4
5/*
6 * Copyright (c) 2010-2011, ETH Zurich.
7 * All rights reserved.
8 *
9 * This file is distributed under the terms in the attached LICENSE file.
10 * If you do not find this file, copies can be found by writing to:
11 * ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Attn: Systems Group.
12 */
13
14#ifndef __BARRIER_H__
15#define __BARRIER_H__
16
17#include <barrelfish/barrelfish.h>
18
19#define NAME_LEN 20
20
21errval_t nsb_wait_n(int n, char *name);
22errval_t nsb_wait_s(char *s1, char *s2);
23errval_t nsb_wait_ready(char *name);
24errval_t nsb_wait(char *name);
25errval_t nsb_register(char *name);
26errval_t nsb_register_n(int n, char *name);
27errval_t nsb_register_s(char *s1, char *s2);
28errval_t nsb_register_ready(char *name);
29errval_t nsb_master(int min, int max, char *name);
30errval_t nsb_master_l(coreid_t *cores, int n_cores, char *name);
31errval_t nsb_worker(int num, char *name);
32
33#endif /* __BARRIER_H__ */
34