diff options
author | Bill Fischofer <bill.fischofer@linaro.org> | 2014-11-17 17:19:02 -0600 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2014-11-20 11:59:52 +0300 |
commit | b9318299d307c37f7a092631f2f6a5f3846c8dd0 (patch) | |
tree | 0b563f9f99b8891f4f4d6ed3197320a5c8c539a2 /platform | |
parent | 7e7b448a319f5654e89069a4d1d31af9bcc5986c (diff) |
API name changes for odp_barrier.h for ODP v1.0
2 patches from mailing list:
- API name changes for odp_barrier.h for ODP v1.0
- Update examples for odp_barrier.h API changes for ODP v1.0
This patch updates example programs to reflect API name changes in
odp_barrier.h for ODP v1.0
Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
Reviewed-by: Petri Savolainen <petri.savolainen@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'platform')
-rw-r--r-- | platform/linux-generic/include/api/odp_barrier.h | 4 | ||||
-rw-r--r-- | platform/linux-generic/odp_barrier.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/platform/linux-generic/include/api/odp_barrier.h b/platform/linux-generic/include/api/odp_barrier.h index fb02a9d7e..1790ea3a7 100644 --- a/platform/linux-generic/include/api/odp_barrier.h +++ b/platform/linux-generic/include/api/odp_barrier.h @@ -42,7 +42,7 @@ typedef struct odp_barrier_t { * @param barrier Barrier * @param count Thread count */ -void odp_barrier_init_count(odp_barrier_t *barrier, int count); +void odp_barrier_init(odp_barrier_t *barrier, int count); /** @@ -50,7 +50,7 @@ void odp_barrier_init_count(odp_barrier_t *barrier, int count); * * @param barrier Barrier */ -void odp_barrier_sync(odp_barrier_t *barrier); +void odp_barrier_wait(odp_barrier_t *barrier); /** * @} diff --git a/platform/linux-generic/odp_barrier.c b/platform/linux-generic/odp_barrier.c index f4a87c85a..87be2a12c 100644 --- a/platform/linux-generic/odp_barrier.c +++ b/platform/linux-generic/odp_barrier.c @@ -8,7 +8,7 @@ #include <odp_sync.h> #include <odp_spin_internal.h> -void odp_barrier_init_count(odp_barrier_t *barrier, int count) +void odp_barrier_init(odp_barrier_t *barrier, int count) { barrier->count = count; barrier->bar = 0; @@ -28,7 +28,7 @@ void odp_barrier_init_count(odp_barrier_t *barrier, int count) * barrier crosses to the other half of the cycle. */ -void odp_barrier_sync(odp_barrier_t *barrier) +void odp_barrier_wait(odp_barrier_t *barrier) { uint32_t count; int wasless; |