Skip to content

Commit 51aa602

Browse files
authored
Revert the constructor of tbb::flow::resource_limiter (#1989)
1 parent 463b603 commit 51aa602

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

rfcs/proposed/flow_graph_serializers/resource_consumer_node_api.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ template <typename ResourceHandle>
4949
class resource_limiter {
5050
using resource_handle_type = ResourceHandle;
5151

52-
resource_limiter(std::initializer_list<ResourceHandle> instances);
52+
template <typename Handle, typename... Handles>
53+
resource_limiter(Handle&& handle, Handles&&... handles);
5354
};
5455

5556
template <typename Input, typename OutputTuple>
@@ -160,10 +161,14 @@ using resource_handle_type = ResourceHandle;
160161
An alias to the resource handle type used by the provider.
161162

162163
```cpp
163-
resource_limiter(std::initializer_list<ResourceHandle> instances);
164+
template <typename Handle, typename... Handles>
165+
resource_limiter(Handle&& handle, Handles&&... handles);
164166
```
165167
166-
Constructs a resource provider containing resources represented by `instances`.
168+
Constructs a resource provider containing resources represented by the ``handle`` and the ``handles``.
169+
170+
``ResourceHandle`` must be constructible from ``std::forward<Handle>(handle)``,
171+
and from ``std::forward<H>(h)`` for each ``H`` in ``Handles`` and for each ``h`` in ``handles``.
167172
168173
#### `oneapi::tbb::flow::resource_limited_node` Class
169174

0 commit comments

Comments
 (0)