A cancellation beacon is a flag which can be polled in an inlinable fashion using the is_signaled method in lieu of polling on the more expensive non inlinable is_current_task_group_canceling method.
More...
A cancellation beacon is a flag which can be polled in an inlinable fashion using the is_signaled method in lieu of polling on the more expensive non inlinable is_current_task_group_canceling method.
Cancellation beacons can be used only in the same way as structured_task_group and _StructuredTaskCollection. They are intended as stack based objects utilized in strictly nested RAII fashion. A beacon can NOT be passed to another thread or allocated on the heap.