Message ID | 1447206173-31970-1-git-send-email-bill.fischofer@linaro.org |
---|---|
State | New |
Headers | show |
See the commit msg in part 3 for the rationale behind this patch. On Tuesday, November 10, 2015, Savolainen, Petri (Nokia - FI/Espoo) < petri.savolainen@nokia.com> 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:lng-odp-bounces@lists.linaro.org <javascript:;>] > On Behalf Of > > EXT Bill Fischofer > > Sent: Wednesday, November 11, 2015 3:43 AM > > To: lng-odp@lists.linaro.org <javascript:;> > > Subject: [lng-odp] [API-NEXT PATCH 1/3] api: config: add > > odp_config_threads() API > > > > Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org <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 > > lng-odp@lists.linaro.org <javascript:;> > > https://lists.linaro.org/mailman/listinfo/lng-odp >
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 */
Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org> --- include/odp/api/config.h | 6 ++++++ 1 file changed, 6 insertions(+)