diff options
author | Bill Fischofer <bill.fischofer@linaro.org> | 2014-03-20 08:37:12 -0500 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2014-03-24 13:48:16 +0400 |
commit | 68e920f5264aea8d017557f492b50ab062d28e53 (patch) | |
tree | e916fe961a96b7677931aa6385e422de98535495 /include | |
parent | 0c80c7e6961c62280dae86ed047148fe690fc5c9 (diff) |
Correct race condition and simplify barrier implementation
Add odp_mem_barrier() before exit from odp_barrier_sync()
Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/odp_barrier.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/odp_barrier.h b/include/odp_barrier.h index bb4a6c53..0a1404b9 100644 --- a/include/odp_barrier.h +++ b/include/odp_barrier.h @@ -28,8 +28,7 @@ extern "C" { */ typedef struct odp_barrier_t { int count; - odp_atomic_int_t in; - odp_atomic_int_t out; + odp_atomic_int_t bar; } odp_barrier_t; |