This addition explicitly loses the requirement that a single thread should
be able to allocate the whole pool even if nothing used it before.
Therefore per-thread caches are allowed to retain some elements locally.

Signed-off-by: Zoltan Kiss <[email protected]>
---
 include/odp/api/pool.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/odp/api/pool.h b/include/odp/api/pool.h
index 2e79a55..deab963 100644
--- a/include/odp/api/pool.h
+++ b/include/odp/api/pool.h
@@ -43,6 +43,9 @@ extern "C" {
 /**
  * Pool parameters
  * Used to communicate pool creation options.
+ * @note A single thread may not be able to allocate all 'num' elements
+ * from the pool at any particular time, as other threads or hardware
+ * blocks are allowed to keep some for caching purposes.
  */
 typedef struct odp_pool_param_t {
        /** Pool type */
-- 
1.9.1

_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to