Home
last modified time | relevance | path

Searched refs:exception (Results 1 – 25 of 38) sorted by relevance

12

/oneTBB/doc/main/tbb_userguide/
H A DCancellation_and_Nested_Parallelism.rst25 exception occurs. For example, consider the tree in the following
39 the exception. oneTBB propagates the exception upwards, cancelling
43 #. Handle exception in C:
46 a. Capture exception in C.
52 c. Throw exception from C to B.
55 #. Handle exception in B:
58 a. Capture exception in B.
64 c. Throw an exception out of B to A.
67 #. Handle exception in A:
70 a. Capture exception in A.
[all …]
H A DExceptions_and_Cancellation.rst8 cancellation. When code inside an oneTBB algorithm throws an exception,
12 #. The exception is captured. Any further exceptions inside the
21 #. Once all parts of the algorithm stop, an exception is thrown on the
25 The exception thrown in step 3 might be the original exception, or might
30 oneTBB might throw the original exception. So be sure your code can
31 catch either type of exception. The following example demonstrates
32 exception handling.
71 throws an exception ``std::out_of_range`` during execution of the
72 algorithm. When the exception happens, the algorithm is cancelled and an
73 exception thrown at the call site to ``parallel_for``.
H A Dcatching_exceptions.rst7 If you catch an exception within the node's body, execution continues
8 normally, as you might expect. If an exception is thrown but is not
10 of the graph's nodes are canceled and the exception is rethrown at the
40 In the code above, the second function_node, f2, throws an exception
42 graph to be canceled and the exception to be rethrown at the call to
44 terminate. If desirable, the exception could be caught and handled
62 If the exception is caught and handled in the body, then there is no
64 instead to catch the exception at the call to wait_for_all:
H A DFlow_Graph_Tips.rst13 ../tbb_userguide/Flow-Graph-exception-tips
H A DMutual_Exclusion.rst99 itself. The reason is that the C interface would not be exception safe,
100 because if the protected region threw an exception, control would skip
103 the protected region was exited by normal control flow or an exception.
H A DFlow-Graph-exception-tips.rst8 an exception that propagates beyond a node's body. You can then
H A Dcancelling_nested_parallelism.rst12 to an exception, any tasks started by parallel algorithms or flow graphs
H A Duse_graph_reset.rst8 exception or because its task_group_context is canceled explicitly, the
H A DCancellation_Without_An_Exception.rst7 To cancel an algorithm but not throw an exception, use the expression ``current_context()->cancel_g…
H A Dcancel_a_graph.rst7 To cancel a graph execution without an exception, you can create the
/oneTBB/include/oneapi/tbb/detail/
H A D_exception.h57 class TBB_EXPORT user_abort : public std::exception {
63 class TBB_EXPORT missing_wait : public std::exception {
/oneTBB/src/tbb/
H A Dtask_group_context.cpp68 auto exception = ctx.my_exception.load(std::memory_order_relaxed); in destroy() local
69 if (exception) { in destroy()
70 exception->destroy(); in destroy()
250 auto exception = ctx.my_exception.load(std::memory_order_relaxed); in reset() local
251 if (exception) { in reset()
252 exception->destroy(); in reset()
H A Dtask_dispatcher.cpp176 auto exception = w_ctx.my_exception.load(std::memory_order_acquire); in execute_and_wait() local
177 if (exception) { in execute_and_wait()
179 exception->throw_self(); in execute_and_wait()
/oneTBB/test/tbb/
H A Dtest_concurrent_queue.cpp126 throw std::exception{}; in throw_element()
151 }(), std::exception); in CopyWithThrowElement()
235 } catch (int exception) { in fill_and_catch() local
236 CHECK(exception == 1); in fill_and_catch()
H A Dtest_eh_thread.cpp112 } catch (const std::exception & e) {
/oneTBB/test/conformance/
H A Dconformance_collaborative_call_once.cpp111 throw std::exception{}; in __anon8e61f74e0602()
113 } catch (std::exception&) {
/oneTBB/test/common/
H A Dexception_handling.h100 class test_exception : public std::exception {
186 } catch ( std::exception& ) { \
/oneTBB/examples/parallel_reduce/pi/
H A Dmain.cpp96 catch (std::exception& e) { in main()
/oneTBB/doc/main/reference/scalable_memory_pools/
H A Dfixed_pool_cls.rst60 Throws the ``bad_alloc`` exception if the library fails to construct an instance of the class.
H A Dmemory_pool_cls.rst66 Throws the ``bad_alloc`` exception if runtime fails to construct an instance of the class.
/oneTBB/doc/main/tbb_userguide/design_patterns/
H A DReduction.rst214 problem is retrieving floating-point exception flags for a
253 // Operates on a chunk and collects floating-point exception state into flags member.
275 // Construction of cc implicitly resets FP exception state.
/oneTBB/python/rml/
H A DCMakeLists.txt20 ../../src/tbb/exception.cpp
/oneTBB/src/tbb/def/
H A Dlin64-tbb.def50 /* Error handling (exception.cpp) */
H A Dlin32-tbb.def50 /* Error handling (exception.cpp) */
H A Dmac64-tbb.def52 # Error handling (exception.cpp)

12