/usr/lib/python3.10/multiprocessing/__pycache__
Edit: /usr/lib/python3.10/multiprocessing/__pycache__/synchronize.cpython-310.pyc (11327B)
o
9jZ- @ s g d Z ddlZddlZddlZddlZddlZddlmZ ddlmZ ddlm Z z
ddlm
Z
mZ W n ey? edw e
ed \ZZej
jZG d
d deZ
G dd
d
e
ZG dd deZG dd de
ZG dd de
ZG dd deZG dd deZG dd dejZdS ))LockRLock SemaphoreBoundedSemaphore ConditionEvent N )context)process)util)SemLock
sem_unlinkzThis platform lacks a functioning sem_open implementation, therefore, the required synchronization primitives needed will not function, see issue 3770. c @ s\ e Zd Ze Zdd Zedd Zdd Z dd Z
d d
Zdd Zd
d Z
edd ZdS )r c C s |d u r t j }| }tjdkp|dk}tdD ]}zt|||| | }| _
W n ty5 Y qw ntdt
d|j | tjdkrWdd } t| | | j
jd urydd lm}
|
| j
jd
tj| tj| j
jfdd d S d S )
Nwin32forkd zcannot find name for semaphorezcreated semlock with handle %sc S s | j d S N)_semlock_after_fork)obj r 2/usr/lib/python3.10/multiprocessing/synchronize.pyr G s z%SemLock.__init__.
._after_forkr )register semaphorer )exitpriority)r _default_contextget_contextget_start_methodsysplatformrange_multiprocessingr
_make_namer FileExistsErrorr debughandle
_make_methodsregister_after_forknameresource_trackerr Finalize_cleanup)selfkindvaluemaxvaluectxr(
unlink_nowislr r r r r __init__2 s6
zSemLock.__init__c C s" ddl m} t| || d d S )Nr )
unregisterr )r) r5 r
)r( r5 r r r r+ T s zSemLock._cleanupc C | j j| _| j j| _d S r )r acquirereleaser, r r r r&