sqleInterruptCtx API - Interrupt context

Interrupts the specified context.

Scope

The scope of this API is limited to the immediate process.

Authorization

None

Required connection

Database

API include file

sql.h

API and data structure syntax

SQL_API_RC SQL_API_FN
  sqleInterruptCtx (
        void * pCtx,
        void * reserved,
        struct sqlca * pSqlca);

sqleInterruptCtx API parameters

pCtx
Input. A valid context previously allocated by sqleBeginCtx.
reserved
Reserved for future use. Must be set to NULL.
pSqlca
Output. A pointer to the sqlca structure.

Usage notes

During processing, this API:
  • Switches to the context that has been passed in
  • Sends an interrupt
  • Switches to the original context
  • Exits.