Mini Shell
U
��eg|C � @ s� d Z dZddlZddlZddlZddlmZ ddlmZ ddlmZ ddlm Z G d d
� d
�Z
G dd� d�ZG d
d� de�ZG dd� d�Z
G dd� de�ZG dd� de�ZG dd� de�ZdS )zSynchronization primitives.)�Lock�Event� Condition� Semaphore�BoundedSemaphore� N� )�events)�futures)�
exceptions)�
coroutinesc @ s( e Zd ZdZdd� Zdd� Zdd� ZdS ) �_ContextManagera\ Context manager.
This enables the following idiom for acquiring and releasing a
lock around a block:
with (yield from lock):
<block>
while failing loudly when accidentally using:
with lock:
<block>
Deprecated, use 'async with' statement:
async with lock:
<block>
c C s
|| _ d S �N)�_lock)�self�lock� r �,/opt/cppython/lib/python3.8/asyncio/locks.py�__init__"