File: //lib64/python3.8/multiprocessing/__pycache__/shared_memory.cpython-38.pyc
U
e5dD @ s d Z ddgZddlmZ ddlZddlZddlZddlZddlZej dkrXddl
Z
dZnddlZdZej
ejB Zd Zer~d
ZndZdd
ZG dd dZdZG dd dZdS )zProvides shared memory for direct access across processes.
The API of this package is currently provisional. Refer to the
documentation for details.
SharedMemory
ShareableList )partialNntFT z/psm_Zwnsm_c C sB t tt d } | dks tdtt| }t|t ks>t|S )z6Create a random filename for the shared memory object. z_SHM_NAME_PREFIX too long)_SHM_SAFE_NAME_LENGTHlen_SHM_NAME_PREFIXAssertionErrorsecretsZ token_hex)nbytesname r 5/usr/lib64/python3.8/multiprocessing/shared_memory.py_make_filename&