File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/zmq/backend/cffi/__pycache__/context.cpython-310.pyc
Back
o ;jk � @ sX d Z ddlmZmZ ddlmZmZmZ ddlm Z ddlm Z G dd� d�ZdgZ d S ) zzmq Context class� )�EINVAL� IO_THREADS)�InterruptedSystemCall�ZMQError� _check_rc� )�ffi)�libc @ sV e Zd ZdZdZdZdZddd�Zedd� �Z ed d � �Z dd� Zd d� Zdd� Z dS )�ContextNTFr c C sp |r t �d|�| _d| _nd| _|dkstt��t�� | _| jt jkr)tt� � ��|s3t� | jt|� d| _d S )Nzvoid *TFr ) r �cast�_zmq_ctx�_shadowr r �CZzmq_ctx_newZNULLZ zmq_errno�zmq_ctx_setr �_closed)�selfZ io_threadsZshadow� r �L/opt/saltstack/salt/lib/python3.10/site-packages/zmq/backend/cffi/context.py�__init__ s zContext.__init__c C s t t�d| j��S )z,The address of the underlying libzmq contextZsize_t)�intr r r �r r r r � underlying# s zContext.underlyingc C s | j S )N)r r r r r �closed( s zContext.closedc C s t �| j||�}t|� dS )z6set a context option see zmq_ctx_set N)r r r r )r �option�value�rcr r r �set, s zContext.setc C s t �| j|�}t|dd� |S )z4get context option see zmq_ctx_get F)Zerror_without_errno)r Zzmq_ctx_getr r )r r r r r r �get4 s zContext.getc C sF | j rd S t�| j�}zt|� W n ty Y nw d | _d| _d S )NT)r r Zzmq_ctx_destroyr r r r )r r r r r �term= s � zContext.term)r N)�__name__� __module__�__qualname__r Z _iothreadsr r r �propertyr r r r r r r r r r s r N)�__doc__Z zmq.constantsr r Z zmq.errorr r r Z_cffir r r r �__all__r r r r �<module> s @
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings