Go to the source code of this file.
|
int __cdecl | setjmp (_Out_ jmp_buf _Buf) |
|
| __declspec (noreturn) void __cdecl longjmp(_In_ jmp_buf _Buf |
| Cancels the currently executing task. This function can be called from within the body of a task to abort the task's execution and cause it to enter the canceled state. While it may be used in response to a cancellation request through a cancellation_token , you may also use it by itself, to initiate cancellation of the task that is currently executing. More...
|
|
typedef _JBTYPE jmp_buf[_JBLEN] |
Cancels the currently executing task. This function can be called from within the body of a task to abort the task's execution and cause it to enter the canceled
state. While it may be used in response to a cancellation request through a cancellation_token
, you may also use it by itself, to initiate cancellation of the task that is currently executing.
It is not a supported scenario to call this function if you are not within the body of a task
. Doing so will result in undefined behavior such as a crash or a hang in your application.
- See also
- task Class
#define _THROW_NCEE(x, y)
Definition: xstddef:78
#define _EMPTY_ARGUMENT
Definition: xstddef:82