| /oneTBB/doc/main/tbb_userguide/ |
| H A D | Cancellation_and_Nested_Parallelism.rst | 25 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 D | Exceptions_and_Cancellation.rst | 8 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 D | catching_exceptions.rst | 7 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 D | Flow_Graph_Tips.rst | 13 ../tbb_userguide/Flow-Graph-exception-tips
|
| H A D | Mutual_Exclusion.rst | 99 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 D | Flow-Graph-exception-tips.rst | 8 an exception that propagates beyond a node's body. You can then
|
| H A D | cancelling_nested_parallelism.rst | 12 to an exception, any tasks started by parallel algorithms or flow graphs
|
| H A D | use_graph_reset.rst | 8 exception or because its task_group_context is canceled explicitly, the
|
| H A D | Cancellation_Without_An_Exception.rst | 7 To cancel an algorithm but not throw an exception, use the expression ``current_context()->cancel_g…
|
| H A D | cancel_a_graph.rst | 7 To cancel a graph execution without an exception, you can create the
|
| /oneTBB/include/oneapi/tbb/detail/ |
| H A D | _exception.h | 57 class TBB_EXPORT user_abort : public std::exception { 63 class TBB_EXPORT missing_wait : public std::exception {
|
| /oneTBB/src/tbb/ |
| H A D | task_group_context.cpp | 68 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 D | task_dispatcher.cpp | 176 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 D | test_concurrent_queue.cpp | 126 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 D | test_eh_thread.cpp | 112 } catch (const std::exception & e) {
|
| /oneTBB/test/conformance/ |
| H A D | conformance_collaborative_call_once.cpp | 111 throw std::exception{}; in __anon8e61f74e0602() 113 } catch (std::exception&) {
|
| /oneTBB/test/common/ |
| H A D | exception_handling.h | 100 class test_exception : public std::exception { 186 } catch ( std::exception& ) { \
|
| /oneTBB/examples/parallel_reduce/pi/ |
| H A D | main.cpp | 96 catch (std::exception& e) { in main()
|
| /oneTBB/doc/main/reference/scalable_memory_pools/ |
| H A D | fixed_pool_cls.rst | 60 Throws the ``bad_alloc`` exception if the library fails to construct an instance of the class.
|
| H A D | memory_pool_cls.rst | 66 Throws the ``bad_alloc`` exception if runtime fails to construct an instance of the class.
|
| /oneTBB/doc/main/tbb_userguide/design_patterns/ |
| H A D | Reduction.rst | 214 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 D | CMakeLists.txt | 20 ../../src/tbb/exception.cpp
|
| /oneTBB/src/tbb/def/ |
| H A D | lin64-tbb.def | 50 /* Error handling (exception.cpp) */
|
| H A D | lin32-tbb.def | 50 /* Error handling (exception.cpp) */
|
| H A D | mac64-tbb.def | 52 # Error handling (exception.cpp)
|