STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Macros | Typedefs | Functions | Variables
setjmp.h File Reference
#include <crtdefs.h>

Go to the source code of this file.

Macros

#define _INC_SETJMP
 
#define _JMP_BUF_DEFINED
 

Typedefs

typedef _JBTYPE jmp_buf[_JBLEN]
 

Functions

int __cdecl setjmp (_Out_ jmp_buf _Buf)
 
_CRTIMP __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 the is_task_cancellation_requested function, you may also use it by itself, to initiate cancellation of the task that is currently executing. More...
 

Variables

_CRTIMP _In_ int _Value
 

Macro Definition Documentation

#define _INC_SETJMP
#define _JMP_BUF_DEFINED

Typedef Documentation

typedef _JBTYPE jmp_buf[_JBLEN]

Function Documentation

_CRTIMP __declspec ( noreturn  )
inline

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 the is_task_cancellation_requested function, 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
204 {
205  throw task_canceled();
206 }
int __cdecl setjmp ( _Out_ jmp_buf  _Buf)

Variable Documentation

_CRTIMP _In_ int _Value