IMPORTANT: It is assumed that this method is not used concurrently!
| 427 | |
| 428 | // IMPORTANT: It is assumed that this method is not used concurrently! |
| 429 | void task_group_context::reset () { |
| 430 | //! TODO: Add assertion that this context does not have children |
| 431 | // No fences are necessary since this context can be accessed from another thread |
| 432 | // only after stealing happened (which means necessary fences were used). |
| 433 | if ( my_exception ) { |
| 434 | my_exception->destroy(); |
| 435 | my_exception = NULL; |
| 436 | } |
| 437 | my_cancellation_requested = 0; |
| 438 | } |
| 439 | |
| 440 | #if __TBB_FP_CONTEXT |
| 441 | // IMPORTANT: It is assumed that this method is not used concurrently! |