Compartir a través de


interruption_point Function

Creates an interruption point for cancellation. If a cancellation is in progress in the context where this function is called, this will throw an internal exception that aborts the execution of the currently executing parallel work. If cancellation is not in progress, the function does nothing.

inline void interruption_point();

Remarks

You should not catch the internal cancellation exception thrown by the interruption_point() function. The exception will be caught and handled by the runtime, and catching it may cause your program to behave abnormally.

Requirements

Header: ppl.h

Namespace: concurrency

See Also

Reference

concurrency Namespace