diff options
author | Jere Leppänen <jere.leppanen@nokia.com> | 2021-08-10 15:36:15 +0300 |
---|---|---|
committer | Petri Savolainen <petri.savolainen@nokia.com> | 2021-09-30 11:10:11 +0300 |
commit | 735e84f433d0eb8be225e308eeccf958a1d64ea7 (patch) | |
tree | 10e2ac7124e781153fa238dff934c16796107a8b /helper/threads.c | |
parent | 17dab693309bd6beea145ecf1edbe81c289b9f4d (diff) |
helper: threads: add odph_thread_common_param_init()
Add helper API function to initialize thread common parameters.
Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
Diffstat (limited to 'helper/threads.c')
-rw-r--r-- | helper/threads.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/helper/threads.c b/helper/threads.c index f8244a89b..38c1293c1 100644 --- a/helper/threads.c +++ b/helper/threads.c @@ -224,6 +224,11 @@ static int wait_pthread(odph_thread_t *thread) return 0; } +void odph_thread_common_param_init(odph_thread_common_param_t *param) +{ + memset(param, 0, sizeof(*param)); +} + int odph_thread_create(odph_thread_t thread[], const odph_thread_common_param_t *param, const odph_thread_param_t thr_param[], |