endurox.tpnewctxt

endurox.tpnewctxt(auto_destroy: bool, auto_set: bool) endurox.TPCONTEXT_T

Create new ATMI Context.

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

Parameters:
  • auto_destroy (bool) – If set to true, delete the Context when current thread exits.

  • auto_set (bool) – If set to true, associate current thread with created context.

Returns:

context – ATMI Context handle.

Return type:

TPCONTEXT_T