Home
last modified time | relevance | path

Searched refs:function (Results 1 – 25 of 57) sorted by relevance

123

/oneTBB/doc/main/reference/
H A Dtask_group_extensions.rst16 …eduler/task_group/task_group_cls.html>`_ with the requirements for a user-provided function object.
40 //only the requirements for the return type of function F are changed
44 //only the requirements for the return type of function F are changed
48 //only the requirements for the return type of function F are changed
61 .. cpp:function:: template<typename F> task_handle defer(F&& f)
66 …The ``task_handle`` returned by the function must be created using ``*this`` ``task_group``. That …
68 .. cpp:function:: template<typename F> task_group_status run_and_wait(const F& f)
73 …The ``task_handle`` returned by the function must be created using ``*this`` ``task_group``. That …
76 .. cpp:function:: template<typename F> void run(F&& f)
81 …The ``task_handle`` returned by the function must be created with ``*this`` ``task_group``. It mea…
H A Dconcurrent_lru_cache_cls.rst89 .. cpp:function:: concurrent_lru_cache( value_function_type f, std::size_t number_of_lru_history_it…
92 unused values, with a function object ``f`` for constructing new values.
96 .. cpp:function:: ~concurrent_lru_cache();
105 .. cpp:function:: handle operator[]( key_type k );
108 If such an item is not found, the user-specified function object is called to
121 .. cpp:function:: handle();
127 .. cpp:function:: handle( handle&& other );
135 .. cpp:function:: ~handle();
143 .. cpp:function:: handle& operator=( handle&& other );
153 .. cpp:function:: operator bool() const;
[all …]
H A Dtype_specified_message_keys.rst18 provide a function object for each input port of ``join_node``.
42 ``key_from_message`` function for each incoming message to obtain the key associated
62 Alternatively, the user can define its own ``key_from_message`` function in the
63 same namespace with the message type. This function will be found via C++ argument-dependent
H A Dfollows_and_precedes_functions.rst3 ``follows`` and ``precedes`` function templates
20 The ``follows`` helper function specifies that the node being constructed is
23 The ``precedes`` helper function specifies that the node being constructed is
49 // node_set is an exposition-only name for the type returned from make_node_set function
H A Dmake_edges_function.rst3 ``make_edges`` function template
16 The ``make_edges`` function template creates edges between a single node
40 // node_set is an exposition-only name for the type returned from make_node_set function
H A Dmake_node_set_function.rst3 ``make_node_set`` function template
16 The ``make_node_set`` function template creates a set of nodes that
H A Dparallel_sort_ranges_extension.rst46 .. cpp:function:: template <typename Container> void parallel_sort( Container&& c );
50 .. cpp:function:: template <typename Container, typename Compare> void parallel_sort( Container&& c…
/oneTBB/doc/main/tbb_userguide/
H A Dstd_invoke.rst81 // Define a lambda function as the body of the parallel_for loop
92 An additional lambda function ``pfor_body`` was also required. This lambda function invoked the ``r…
115 ``std::invoke`` is a function template that provides a syntax for invoking different types of calla…
118 Therefore, it allows you to invoke a callable object, such as a function object, with the provided …
138 // Lambda function to read the member object of the input Object
143 // Lambda function to process the received integer
154 // Connect the function nodes
186 // Use a member function pointer to the number member of the Object struct as the body
189 // Use the number_processor lambda function as the body
192 // Connect the function nodes
[all …]
H A Dalways_use_wait_for_all.rst8 forget to call wait_for_all. The function graph::wait_for_all blocks
12 its nodes. For example, the following function will lead to a program
32 In the function above, the graph g and its node f are destroyed at the
33 end of the function's scope. However, the task spawned to execute f's
37 g.wait_for_all() at the end of the function prevents the premature
H A DLambda_Expressions.rst9 the compiler do the tedious work of creating a function object.
13 expression. The lambda expression, replaces both the declaration and construction of function objec…
37 function object very similar to ``ApplyFoo``. When local variables like
39 inside it, they are "captured" as fields inside the function object. The
42 definition for the ``operator()`` of the generated function object. The
H A DAdvanced_Example.rst31 function object must keep track of the carried information, and how to
33 threads. Also, the function object must record a pointer to ``a`` to
37 The following code shows the complete function object.
H A Dparallel_for_os.rst7 Suppose you want to apply a function ``Foo`` to each element of an
22 ``n-1``. The template function ``oneapi::tbb::parallel_for`` breaks this iteration
25 that operates on a chunk. The form is an STL-style function object,
67 is created. Template function ``parallel_for`` requires that the body
98 template function ``parallel_for``, as follows:
H A DInitializing_and_Terminating_the_Library.rst15 The ``oneapi::tbb::finalize`` function called with an instance of class ``oneapi::tbb::task_schedul…
21 it is recommended to call ``oneapi::tbb::release`` function on all but the last one, then call ``on…
H A DAllocator_Configuration.rst11 - the ``scalable_allocation_command`` function instructs the allocator
16 - the ``scalable_allocation_mode`` function allows an application to
H A DNodes.rst20 represents a simple function with one input and one output. The
45 …- User defined function object, or lambda expression, that is applied to the incoming messa…
56 for the function spin_for is not provided.
73 invoking its function try_put. Using edges is described in the next
H A DData_Flow_Graph.rst117 The body is a function object, or lambda expression, that contains a
118 function operator:
140 The runtime library will repeatedly invoke the function operator in
H A Duse_input_node.rst16 To activate an inactive ``input_node``, you call the node's function
68 function nodes, the following graph would not drop messages, even though
H A DConstraints.rst22 // error: no matching function to call to oneapi::tbb::parallel_for
/oneTBB/doc/main/reference/scalable_memory_pools/
H A Dmalloc_replacement_log.rst6 .. note:: This function is for Windows* OS only.
34 and checks if each one has a known bytecode pattern. If any required function is not found or its b…
37 The ``TBB_malloc_replacement_log`` function allows the program to check if the dynamic memory repla…
44 …address of a char** variable or be ``NULL``. If it is not ``NULL``, the function writes there the …
H A Dmemory_pool_allocator_cls.rst95 .. cpp:function:: explicit memory_pool_allocator(memory_pool &pool)
101 .. cpp:function:: explicit memory_pool_allocator(fixed_pool &pool)
/oneTBB/examples/graph/binpack/
H A DREADME.md4function nodes set about taking values from this `queue_node` and packing them into bins according…
/oneTBB/doc/main/tbb_userguide/design_patterns/
H A DGUI_Thread.rst83 each event, the GUI thread calls a user-defined function ``WndProc`` to process an event.
157 Routine ``LaunchLongRunningWork`` creates a function task and launches it
184 the method ``enqueue`` ensures that the function task eventually executes when resources permit,
186 …postpone execution of the function task until it is explicitly waited upon with the ``oneapi::tbb:…
/oneTBB/doc/main/intro/
H A Dnotation.rst23 …ctory paths and filenames, commands and command line options, function names, methods, …
24 …- \ ``ippsapi.h`` \ ``\alt\include`` Use the okCreateObjs() function to... …
/oneTBB/examples/common/utility/
H A Dutility.hpp398 step_function_ptr_type function; member
403 function(a_function) {} in step_function_descriptor()
451 step.step_function = step_function_descriptors[i].function; in operator >>()
523 step_function_descriptors[i].function != range.step.step_function; in operator <<()
/oneTBB/include/oneapi/tbb/
H A Dparallel_invoke.h40 function_invoker(const Function& function, WaitObject& wait_ctx) : in function_invoker()
41 my_function(function), in function_invoker()

123