Hi everyone,

Does anyone know why does odphthread_run_start_routine() and odp_run_start_routine() call odp_term_global() (see [1] and [2])? Interestingly enough they don't call odp_init_global() (seems reasonable). I was under impression (see [3]) that this call should be called only once and after all threads have called odp_term_local().

In generator example, the main thread tries to do the cleanup after all worker threads (created with odph_odpthreads_create()) have finished and then calls odp_term_global() itself.

[1] https://git.linaro.org/lng/odp.git/tree/helper/linux.c?h=api-next#n280
[2] https://git.linaro.org/lng/odp.git/tree/helper/linux.c?h=api-next#n45
[3] http://docs.opendataplane.org/snapshots/odp-publish/generic/dox_html/next/latest/linux-generic-doxygen-html/group__odp__initialization.html#ga87e9c66ad92201c9e0a710294eab1569
--
Best Regards,
Stanislaw Kardach

Reply via email to