diff options
author | Petri Savolainen <petri.savolainen@linaro.org> | 2015-01-26 15:05:48 +0200 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2015-01-27 15:34:30 +0300 |
commit | 939a02337eb0ad5bbd4a06d6090a95b2263f81ce (patch) | |
tree | f2072a8e104825083577aeec23496d230dc287c6 /example/timer | |
parent | 8d0f8982236b400b11b2e712e3bbd289694e6f2b (diff) |
api: pool: Rename odp_buffer_pool_ to odp_pool_
Replaced odp_buffer_pool_ prefix in the pool API with odp_pool_.
Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>
Reviewed-and-tested-by: Bill Fischofer <bill.fischofer@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'example/timer')
-rw-r--r-- | example/timer/odp_timer_test.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/example/timer/odp_timer_test.c b/example/timer/odp_timer_test.c index 3521414..808b582 100644 --- a/example/timer/odp_timer_test.c +++ b/example/timer/odp_timer_test.c @@ -44,7 +44,7 @@ typedef struct { static odp_barrier_t test_barrier; /** @private Buffer pool handle */ -static odp_buffer_pool_t pool; +static odp_pool_t pool; /** @private Timer pool handle */ static odp_timer_pool_t tp; @@ -186,7 +186,7 @@ static void test_abs_timeouts(int thr, test_args_t *args) static void *run_thread(void *ptr) { int thr; - odp_buffer_pool_t msg_pool; + odp_pool_t msg_pool; test_args_t *args; args = ptr; @@ -197,9 +197,9 @@ static void *run_thread(void *ptr) /* * Find the buffer pool */ - msg_pool = odp_buffer_pool_lookup("msg_pool"); + msg_pool = odp_pool_lookup("msg_pool"); - if (msg_pool == ODP_BUFFER_POOL_INVALID) { + if (msg_pool == ODP_POOL_INVALID) { EXAMPLE_ERR(" [%i] msg_pool not found\n", thr); return NULL; } @@ -378,9 +378,9 @@ int main(int argc, char *argv[]) params.buf.num = MSG_NUM_BUFS; params.type = ODP_POOL_TIMEOUT; - pool = odp_buffer_pool_create("msg_pool", ODP_SHM_NULL, ¶ms); + pool = odp_pool_create("msg_pool", ODP_SHM_NULL, ¶ms); - if (pool == ODP_BUFFER_POOL_INVALID) { + if (pool == ODP_POOL_INVALID) { EXAMPLE_ERR("Buffer pool create failed.\n"); return -1; } |