aboutsummaryrefslogtreecommitdiff
path: root/test/validation/api/queue
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2022-07-08 15:27:38 +0300
committerMatias Elo <matias.elo@nokia.com>2022-09-29 14:26:22 +0300
commitac385fc340767f9467b4c39a5c1484c059ee2d52 (patch)
tree54dbeb1ad9968fd7964379cedcd82e7ace4b92d9 /test/validation/api/queue
parent8cad199fc460c4a764081fb48f6f5d6461070fea (diff)
test: cunit: add option to create threads in sync mode
Add new sync argument to odp_cunit_thread_create(), which can be used to create threads in synchronized mode. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'test/validation/api/queue')
-rw-r--r--test/validation/api/queue/queue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/validation/api/queue/queue.c b/test/validation/api/queue/queue.c
index 8f1278f61..f661da075 100644
--- a/test/validation/api/queue/queue.c
+++ b/test/validation/api/queue/queue.c
@@ -547,7 +547,7 @@ static void test_pair(odp_nonblocking_t nonblocking,
/* Create one worker thread */
arg = globals;
- odp_cunit_thread_create(1, queue_pair_work_loop, &arg, 0);
+ odp_cunit_thread_create(1, queue_pair_work_loop, &arg, 0, 0);
/* Run this thread as the second thread */
CU_ASSERT(queue_pair_work_loop(globals) == 0);
@@ -1018,7 +1018,7 @@ static void multithread_test(odp_nonblocking_t nonblocking)
CU_ASSERT(alloc_and_enqueue(queue, pool, num) == num);
arg = globals;
- odp_cunit_thread_create(num_workers, queue_test_worker, &arg, 0);
+ odp_cunit_thread_create(num_workers, queue_test_worker, &arg, 0, 0);
/* Wait for worker threads to terminate */
odp_cunit_thread_join(num_workers);