endurox.tpsetctxt

endurox.tpsetctxt(*args, **kwargs)

Overloaded function.

  1. tpsetctxt(context: endurox.TPCONTEXT_T, flags: int = 0) -> None

    Set current ATMI context from handle received from tpgetctxt() or tpnewctxt().

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

    raise AtmiException:
    Following error codes may be present:
    TPENOENT - Invalid context data.
    TPESYSTEM - System error occurred.

    Parameters

    contextTPCONTEXT_T

    Context handle.

    flagsint

    RFU, default 0.

  2. tpsetctxt(none: None, flags: int = 0) -> None

    Set TPNULLCONTEXT. Removes given thread from any ATMI context.

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

    raise AtmiException:
    Following error codes may be present:
    TPESYSTEM - System error occurred.

    Parameters

    nonenone

    Python’s py::None constant.

    flagsint

    RFU, default 0.