> --- a/include/odp/api/spec/init.h > +++ b/include/odp/api/spec/init.h > @@ -234,6 +234,10 @@ int odp_term_global(odp_instance_t instance); > * All threads must call this function before calling any other ODP API > * functions. The instance parameter specifies which ODP instance the > thread > * joins. A thread may be simultaneously part of single ODP instance > only. > + * On OSes supporting process hierarchy (e.g linux), this parameter is > actually > + * redundant as all ODP threads have to be descendant of their ODP > + * instantiation process: In these case, the instance parameter must > match the > + * ODP instance of the ancestor process which called ODP_init_global() > * > * @param instance Instance handle > * @param thr_type Thread type > -- > 2.5.0
This is an API change and should be send for api-next. Also there's no need to speculate how an implementation might or might not use the instance parameter. Application just needs to save instance ID returned by the global_init() and pass it in each local_init() call (for the same instance). So, this is redundant information to application and should not be added to the spec. -Petri _______________________________________________ lng-odp mailing list [email protected] https://lists.linaro.org/mailman/listinfo/lng-odp
