diff options
author | Stuart Haslam <stuart.haslam@linaro.org> | 2015-07-13 18:27:25 +0100 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2015-07-23 19:21:52 +0300 |
commit | 1a56ad5876d266dcf780f873fabf9dd6052df252 (patch) | |
tree | 9ccde60fe98d98d96bb59042b386d7c268f2601e /test/validation | |
parent | dff76c6f923d92727007939daac0cb730b075b46 (diff) |
validation: common: return number of threads created
odph_linux_pthread_create() now returns the number of threads created,
so modify odp_cunit_thread_create() to do the same.
Change-Id: I086ac09e2b0ae2dea1b4d777128de8acca5874d1
Signed-off-by: Stuart Haslam <stuart.haslam@linaro.org>
Reviewed-by: Christophe Milard <christophe.milard@linaro.org>
Diffstat (limited to 'test/validation')
-rw-r--r-- | test/validation/common/odp_cunit_common.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/validation/common/odp_cunit_common.c b/test/validation/common/odp_cunit_common.c index 807325b67..d995ad3d2 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 */ |