MCPcopy Create free account
hub / github.com/cameron314/concurrentqueue / reset

Method reset

benchmarks/tbb/task_group_context.cpp:429–438  ·  view source on GitHub ↗

IMPORTANT: It is assumed that this method is not used concurrently!

Source from the content-addressed store, hash-verified

427
428// IMPORTANT: It is assumed that this method is not used concurrently!
429void 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!

Callers

nothing calls this directly

Calls 1

destroyMethod · 0.45

Tested by

no test coverage detected