File: //lib64/python3.8/multiprocessing/__pycache__/synchronize.cpython-38.opt-1.pyc
U
e5dZ- @ s, d dddddgZ ddlZddlZddlZddlZddlZdd lmZ dd
lmZ ddlm Z zddlm
Z
mZ W n ek
r ed
Y nX e
ed\ZZej
jZG dd deZ
G dd de
ZG dd deZG dd d e
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 krt j }| }tjdkp*|dk}tdD ]>}z t|||| | }| _
W n tk
rl Y q4X q|q4tdt
d|j | tjdkrdd } t| | | j
jd k rdd lm}
|
| j
jd
tj| tj| j
jfdd d S )
Nwin32forkd zcannot find name for semaphorezcreated semlock with handle %sc S s | j d S N)_semlock_after_fork)obj r 3/usr/lib64/python3.8/multiprocessing/synchronize.pyr G s z%SemLock.__init__.<locals>._after_forkr )register semaphorer )Zexitpriority)r Z_default_contextZget_contextZget_start_methodsysplatformrange_multiprocessingr
_make_namer FileExistsErrorr debughandle
_make_methodsZregister_after_forknameresource_trackerr ZFinalize_cleanup)selfkindvaluemaxvaluectxr# Z
unlink_nowislr r r r r __init__2 s8
zSemLock.__init__c C s"