uawdijnntqw1x1x1
IP : 3.145.89.181
Hostname : host45.registrar-servers.com
Kernel : Linux host45.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
.
/
..
/
lib64
/
python3.6
/
multiprocessing
/
.
/
.
/
__pycache__
/
sharedctypes.cpython-36.opt-2.pyc
/
/
3 \e� @s:ddlZddlZddlmZddlmZddlmZmZejZ dddd d dgZ ejejej ejejejejejejejejejd�Zd d�Zdd�Zdd�Zddd�dd�Zddd�dd �Zdd �Zd&dd�Zdd�Zdd�Z dd�Z!dZ"iZ#ej$�Z%Gdd�de&�Z'Gd d!�d!e'�Z(Gd"d#�d#e'�Z)Gd$d%�d%e)�Z*dS)'�N�)�heap)�get_context)� reduction�assert_spawning�RawValue�RawArray�Value�Array�copy�synchronized)�c�u�b�B�h�H�i�I�l�L�f�dcCs tj|�}tj|�}t||d�S)N)�ctypes�sizeofrZ BufferWrapper� rebuild_ctype)�type_�size�wrapper�r�4/usr/lib64/python3.6/multiprocessing/sharedctypes.py� _new_value&s r!cGs<tj||�}t|�}tjtj|�dtj|��|j|�|S)Nr)�typecode_to_type�getr!r�memset� addressofr�__init__)�typecode_or_type�argsr�objrrr r+s cCsjtj||�}t|t�rD||}t|�}tjtj|�dtj|��|S|t |�}t|�}|j |�|SdS)Nr)r"r#� isinstance�intr!rr$r%r�lenr&)r'�size_or_initializerrr)�resultrrr r5s T)�lock�ctxcGsXt|f|��}|dkr|S|dkr4|p*t�}|j�}t|d�sJtd|��t|||d�S)NFT�acquirez'%r' has no method 'acquire')r0)TN)rr�RLock�hasattr�AttributeErrorr)r'r/r0r(r)rrr r Es cCsTt||�}|dkr|S|dkr0|p&t�}|j�}t|d�sFtd|��t|||d�S)NFTr1z'%r' has no method 'acquire')r0)TN)rrr2r3r4r)r'r-r/r0r)rrr r Ss cCstt|��}|tj|�d<|S)Nr)r!�typerZpointer)r)Znew_objrrr rascCs�|pt�}t|tj�r"t|||�St|tj�rR|jtjkrFt|||�St |||�St |�}yt|}WnVtk r�dd�|j D�}tdd�|D��}d|j}t |tf|�}t|<YnX||||�SdS)NcSsg|]}|d�qS)rr)�.0Zfieldrrr � <listcomp>usz synchronized.<locals>.<listcomp>css|]}|t|�fVqdS)N)� make_property)r6�namerrr � <genexpr>vszsynchronized.<locals>.<genexpr>�Synchronized)rr*rZ_SimpleCDatar;r �_type_�c_char�SynchronizedString�SynchronizedArrayr5�class_cache�KeyErrorZ_fields_�dict�__name__�SynchronizedBase)r)r/r0�cls�scls�namesrZ classnamerrr rfs cCs@t|�t|tj�r(t|j|j|jffStt|�|jdffSdS)N) rr*rr rr<�_wrapperZ_length_r5)r)rrr �reduce_ctypesrIcCs8|dk r||}tj|t�|j�}|j|�}||_|S)N)�_ForkingPickler�registerrIZcreate_memoryviewZfrom_bufferrH)rrZlengthZbufr)rrr r�s rcCsJyt|Stk rDi}tt|fd|�||t|<||SXdS)N�)� prop_cacherA�exec�template)r9rrrr r8�sr8z� def get%s(self): self.acquire() try: return self._obj.%s finally: self.release() def set%s(self, value): self.acquire() try: self._obj.%s = value finally: self.release() %s = property(get%s, set%s) c@sFeZdZddd�Zdd�Zdd�Zdd �Zd d�Zdd �Zdd�Z dS)rDNcCsB||_|r||_n|ptdd�}|j�|_|jj|_|jj|_dS)NT)Zforce)�_obj�_lockrr2r1�release)�selfr)r/r0rrr r&�s zSynchronizedBase.__init__cCs |jj�S)N)rQ� __enter__)rSrrr rT�szSynchronizedBase.__enter__cGs|jj|�S)N)rQ�__exit__)rSr(rrr rU�szSynchronizedBase.__exit__cCst|�t|j|jffS)N)rrrPrQ)rSrrr � __reduce__�szSynchronizedBase.__reduce__cCs|jS)N)rP)rSrrr �get_obj�szSynchronizedBase.get_objcCs|jS)N)rQ)rSrrr �get_lock�szSynchronizedBase.get_lockcCsdt|�j|jfS)Nz<%s wrapper for %s>)r5rCrP)rSrrr �__repr__�szSynchronizedBase.__repr__)NN) rC� __module__�__qualname__r&rTrUrVrWrXrYrrrr rD�s rDc@seZdZed�ZdS)r;�valueN)rCrZr[r8r\rrrr r;�sr;c@s4eZdZdd�Zdd�Zdd�Zdd�Zd d �ZdS)r?cCs t|j�S)N)r,rP)rSrrr �__len__�szSynchronizedArray.__len__c Cs|�|j|SQRXdS)N)rP)rSrrrr �__getitem__�szSynchronizedArray.__getitem__c Cs|�||j|<WdQRXdS)N)rP)rSrr\rrr �__setitem__�szSynchronizedArray.__setitem__c Cs|�|j||�SQRXdS)N)rP)rS�start�stoprrr �__getslice__�szSynchronizedArray.__getslice__cCs"|�||j||�<WdQRXdS)N)rP)rSr`ra�valuesrrr �__setslice__�szSynchronizedArray.__setslice__N)rCrZr[r]r^r_rbrdrrrr r?�s r?c@seZdZed�Zed�ZdS)r>r\�rawN)rCrZr[r8r\rerrrr r>�sr>)NN)+r�weakref�rr�contextrrZForkingPicklerrJ�__all__r=Zc_wcharZc_byteZc_ubyteZc_shortZc_ushortZc_intZc_uintZc_longZc_ulongZc_floatZc_doubler"r!rrr r rrrIrr8rOrM�WeakKeyDictionaryr@�objectrDr;r?r>rrrr �<module> s:
/home/./../lib64/python3.6/multiprocessing/././__pycache__/sharedctypes.cpython-36.opt-2.pyc