Home
last modified time | relevance | path

Searched refs:functor (Results 1 – 13 of 13) sorted by relevance

/oneTBB/test/conformance/
H A Dconformance_parallel_invoke.cpp42 struct functor { struct
44 functor() = default;
45 functor(const functor&) = delete;
46 functor& operator=(const functor&) = delete;
58 parallel_invoke_call<TaskCount, functor>::perform(context_ptr); in run_validate_and_reset()
112 struct functor { struct
113 functor() = default;
114 functor(const functor&) = delete;
115 functor& operator=(const functor&) = delete;
130 parallel_invoke_call<TaskCount, functor>::perform(); in run_validate_and_reset()
/oneTBB/include/oneapi/tbb/
H A Dconcurrent_priority_queue.h57 my_aggregator.initialize_handler(functor{this}); in concurrent_priority_queue()
63 my_aggregator.initialize_handler(functor{this});
70 my_aggregator.initialize_handler(functor{this});
77 my_aggregator.initialize_handler(functor{this});
84 my_aggregator.initialize_handler(functor{this});
103 my_aggregator.initialize_handler(functor{this}); in concurrent_priority_queue()
110 my_aggregator.initialize_handler(functor{this}); in concurrent_priority_queue()
117 my_aggregator.initialize_handler(functor{this}); in concurrent_priority_queue()
124 my_aggregator.initialize_handler(functor{this}); in concurrent_priority_queue()
241 class functor {
[all …]
/oneTBB/doc/main/tbb_userguide/design_patterns/
H A DLocal_Serializer.rst85 Template function ``EnqueueWork`` causes functor ``f`` to run when
107 Constraints on a given functor are resolved from top to bottom in the
109 implementation of ``EnqueueWork`` packages the functor in a
152 // Destroy f before running Serializer’s next functor.
174 functor. It performs three steps:
177 #. Run the functor.
180 #. Destroy the functor.
183 #. Notify the ``Serializer`` that the functor completed, and thus
184 unconstraining the next waiting functor.
191 that should complete before the next functor runs.
H A DNon-Preemptive_Priorities.rst83 The caller provides a priority ``p`` and a functor ``f`` to routine ``EnqueueWork``.
84 …The functor may be the result of a lambda expression. ``EnqueueWork`` packages ``f`` as a ``WorkIt…
H A DLazy_Initialization.rst87 // but join parallelism inside functor
/oneTBB/doc/main/tbb_userguide/
H A DWorking_on_the_Assembly_Line_pipeline.rst143 constructed by function ``make_filter<inputType, outputType>(mode,functor)``.
158 - The *functor* specifies how to produce an output value from an input
197 invocations of its functor can run concurrently. Hence it is specified
202 functor is the simplest. All it has to do is write a ``TextSlice`` to a
239 The functor for the middle filter is similar, but a bit more complex. It
278 The input functor is the most complicated, because it has to ensure that
283 ``flow_control``. This idiom is required for any functor used for the
340 The copy constructor must be defined because the functor is copied when
341 the underlying ``oneapi::tbb::filter_t`` is built from the functor, and again when the pipeline run…
H A Dwork_isolation.rst91 which runs a user-provided functor in isolation by restricting the
93 functor (also called the isolation region).
/oneTBB/test/tbb/
H A Dtest_parallel_reduce.cpp164 ReduceFunctorToCancel functor; in operator ()() local
165 run_parallel_reduce(br, functor); in operator ()()
206 ReduceFunctorToCancel functor; in operator ()() local
207 run_parallel_deterministic_reduce(br, functor); in operator ()()
H A Dtest_function_node.cpp236 …vels<InputType,OutputType>( c, typename harness_graph_executor<InputType, OutputType>::functor() ); in run_buffered_levels()
412 …urrency<InputType,OutputType>( typename harness_graph_executor<InputType, OutputType>::functor() ); in run_unlimited_concurrency()
H A Dtest_multifunction_node.cpp223 …utputTuple>( c, typename harness_graph_multifunction_executor<InputType, OutputTuple>::functor() ); in run_buffered_levels()
400 …e,OutputTuple>( typename harness_graph_multifunction_executor<InputType, OutputTuple>::functor() ); in run_unlimited_concurrency()
H A Dtest_continue_node.cpp188 …des<OutputType>( typename harness_graph_executor<tbb::flow::continue_msg, OutputType>::functor() ); in run_continue_nodes()
/oneTBB/doc/main/tbb_userguide/Migration_Guide/
H A DTask_API.rst166 already running functor.
197 You can re-run the functor by passing ``*this`` to the ``oneapi::tbb::task_group::run()``
198 method. The functor will be copied in this case. However, its state can be shared among instances:
227 Such patterns are particularly useful when the work within a functor is not completed but there is a
/oneTBB/test/common/
H A Dgraph_utils.h165 typedef tfunctor<tbb::null_rw_mutex> functor;
216 typedef tfunctor<tbb::null_rw_mutex> functor;