1/*
2 * Copyright (c) 2014 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, Universitaetsstrasse 6, CH-8092 Zurich. Attn: Systems Group.
8 */
9#include <bomp_internal.h>
10
11void GOMP_atomic_start(void)
12{
13    assert(g_bomp_state);
14    bomp_lock(&g_bomp_state->atomic_lock);
15}
16
17void GOMP_atomic_end(void)
18{
19    assert(g_bomp_state);
20    bomp_unlock(&g_bomp_state->atomic_lock);
21}
22