ok
Direktori : /opt/alt/python38/lib64/python3.8/multiprocessing/__pycache__/ |
Current File : //opt/alt/python38/lib64/python3.8/multiprocessing/__pycache__/shared_memory.cpython-38.pyc |
U .��cD � @ s� d Z ddgZddlmZ ddlZddlZddlZddlZddlZej dkrXddl Z dZnddlZdZej ejB Zd Zer~d ZndZdd � ZG dd� d�ZdZG dd� d�ZdS )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� )�partialN�ntFT� z/psm_Zwnsm_c C sB t tt� d } | dks td��tt�| � }t|�t ks>t�|S )z6Create a random filename for the shared memory object.� z_SHM_NAME_PREFIX too long)�_SHM_SAFE_NAME_LENGTH�len�_SHM_NAME_PREFIX�AssertionError�secretsZ token_hex)�nbytes�name� r �B/opt/alt/python38/lib64/python3.8/multiprocessing/shared_memory.py�_make_filename&