[libcxx-commits] [PATCH] D59704: Changed buffer API to receive policy instance.
Mikhail Dvorskiy via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Mar 25 02:47:37 PDT 2019
MikeDvorskiy added a comment.
get_memory_pool
In D59704#1439794 <https://reviews.llvm.org/D59704#1439794>, @ldionne wrote:
> How would you somehow handle allocation through a custom policy?
For example a custom policy has get_memory_pool method which provide an interface for memory allocation/access.
Of course, this "contract"(provided by a custom policy) must be known a custom corresponding parallel back-end as well. But Parallel STL core implementation have not to know about this "contract".
I agree with Thomas, in that case it is connected with the executors, because the custom policy specifies certain "backend"... and works like an "executor". And in the future, just an executor should specify back-end.
On the the other hand, "the executors" are not finalized yet.. and it may take many time (months mb). The change so minor.. and the change helps us to sync-up, and when an "executors solution" comes, we will change the code places quickly. That change may not be taken for libcstd integration.
Repository:
rPSTL pstl
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D59704/new/
https://reviews.llvm.org/D59704
More information about the libcxx-commits
mailing list