diff mbox

[API-NEXT,5/6] validation: common: return number of threads created

Message ID 1436809989-9225-6-git-send-email-stuart.haslam@linaro.org
State Superseded
Headers show

Commit Message

Stuart Haslam July 13, 2015, 5:53 p.m. UTC
odph_linux_pthread_create() now returns the number of threads created,
so modify odp_cunit_thread_create() to do the same.

Signed-off-by: Stuart Haslam <stuart.haslam@linaro.org>
---
 test/validation/common/odp_cunit_common.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
diff mbox

Patch

diff --git a/test/validation/common/odp_cunit_common.c b/test/validation/common/odp_cunit_common.c
index 807325b..d995ad3 100644
--- a/test/validation/common/odp_cunit_common.c
+++ b/test/validation/common/odp_cunit_common.c
@@ -29,10 +29,9 @@  int odp_cunit_thread_create(void *func_ptr(void *), pthrd_arg *arg)
 
 	/* Create and init additional threads */
 	odp_cpumask_def_worker(&cpumask, arg->numthrds);
-	odph_linux_pthread_create(thread_tbl, &cpumask, func_ptr,
-				  (void *)arg);
 
-	return 0;
+	return odph_linux_pthread_create(thread_tbl, &cpumask, func_ptr,
+					 (void *)arg);
 }
 
 /** exit from test thread */