aboutsummaryrefslogtreecommitdiff
path: root/example/timer
diff options
context:
space:
mode:
authorPetri Savolainen <petri.savolainen@linaro.org>2015-01-26 15:05:48 +0200
committerMaxim Uvarov <maxim.uvarov@linaro.org>2015-01-27 15:34:30 +0300
commit939a02337eb0ad5bbd4a06d6090a95b2263f81ce (patch)
treef2072a8e104825083577aeec23496d230dc287c6 /example/timer
parent8d0f8982236b400b11b2e712e3bbd289694e6f2b (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.c12
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, &params);
+ pool = odp_pool_create("msg_pool", ODP_SHM_NULL, &params);
- if (pool == ODP_BUFFER_POOL_INVALID) {
+ if (pool == ODP_POOL_INVALID) {
EXAMPLE_ERR("Buffer pool create failed.\n");
return -1;
}