endurox.tpgetctxt

endurox.tpgetctxt(flags: int = 0) tuple

Retrieve current ATMI context handle and put current thread in TPNULLCONTEXT context.

For more details see tpgetctxt(3) C API call.

Parameters:

flags (int) – RFU, default 0.

Returns:

  • ret (int) – In case if current thread was NULL associated TPNULLCONTEXT is returned. In case if current thread was associated with XATMI context, TPMULTICONTEXTS is returned.

  • context (TPCONTEXT_T) – ATMI Context handle.