See the commit msg in part 3 for the rationale behind this patch.

On Tuesday, November 10, 2015, Savolainen, Petri (Nokia - FI/Espoo) <
[email protected]> wrote:

> There's already API for this:
>
> /**
>  * Maximum thread count
>  *
>  * Returns the maximum thread count, which is a constant value and set in
>  * ODP initialization phase.
>  *
>  * @return Maximum thread count
>  */
> int odp_thread_count_max(void);
>
>
> Also new #define ODP_CONFIG_THREADS should not be added.
>
> -Petri
>
>
>
> > -----Original Message-----
> > From: lng-odp [mailto:[email protected] <javascript:;>]
> On Behalf Of
> > EXT Bill Fischofer
> > Sent: Wednesday, November 11, 2015 3:43 AM
> > To: [email protected] <javascript:;>
> > Subject: [lng-odp] [API-NEXT PATCH 1/3] api: config: add
> > odp_config_threads() API
> >
> > Signed-off-by: Bill Fischofer <[email protected] <javascript:;>>
> > ---
> >  include/odp/api/config.h | 6 ++++++
> >  1 file changed, 6 insertions(+)
> >
> > diff --git a/include/odp/api/config.h b/include/odp/api/config.h
> > index c9879d6..beb69d3 100644
> > --- a/include/odp/api/config.h
> > +++ b/include/odp/api/config.h
> > @@ -32,6 +32,12 @@ extern "C" {
> >   */
> >
> >  /**
> > + * Maximum number of threads
> > + * @return The maximum thread count supported by this platform
> > + */
> > +int odp_config_threads(void);
> > +
> > +/**
> >   * Maximum number of pools
> >   * @return The maximum number of pools supported by this platform
> >   */
> > --
> > 2.1.4
> >
> > _______________________________________________
> > lng-odp mailing list
> > [email protected] <javascript:;>
> > https://lists.linaro.org/mailman/listinfo/lng-odp
>
_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to