관리-도구
편집 파일: shared_memory.cpython-311.opt-2.pyc
� c��fH � � � d dgZ ddlmZ ddlZddlZddlZddlZddlZddlZej dk rddl Z dZnddlZdZdd l mZ ej ej z Zd ZerdZndZd � Z G d� d � � ZdZ G d� d� � ZdS )�SharedMemory� ShareableList� )�partialN�ntFT� )�resource_tracker� z/psm_�wnsm_c �~ � t t t � � z dz } t t j | � � z }|S )N� )�_SHM_SAFE_NAME_LENGTH�len�_SHM_NAME_PREFIX�secrets� token_hex)�nbytes�names �D/opt/alt/python311/lib64/python3.11/multiprocessing/shared_memory.py�_make_filenamer ( s7 � �<�#�c�*:�&;�&;�;�� A�F��g�/��7�7�7�D��K� c � � e Zd Z dZdZdZdZej Z dZ erdndZdd�Z d� Zd � Zd � Zed� � � Zed� � � Zed � � � Zd� Zd� ZdS )r N���i� TFr c �x � |dk st d� � �|r.t t j z | _ |dk rt d� � �|�#| j t j z st d� � �t �r*|�O t � � } t j || j | j �� � | _ n# t $ r Y �Cw xY w|| _ n;| j rd|z n|}t j || j | j �� � | _ || _ |r|rt j | j |� � t j | j � � }|j }t% j | j |� � | _ n## t( $ r | � � � � w xY wt- j | j d� � �n�|�r# |�t � � n|}t1 j t0 j t0 j t0 j |d z d z |d z |� � } t1 j � � }|t0 j k rZ|�Bt t>