§
    %P„jÕ  ã                   óè   — d Z ddlZddlZej        dk    rddlZdZdZdZej        Z	n7ej        dk    r!ddl
Z
e
j        Ze
j        Ze
j        Ze
j	        Z	n ed¦  «        ‚ G d	„ d
ej        ¦  «        ZdS )ag  Locking constants.

Lock types:

- `EXCLUSIVE` exclusive lock
- `SHARED` shared lock. Note: on Windows this requires the optional
  ``pywin32`` package (``pip install "portalocker[win32]"``); without it,
  acquiring a shared lock raises ``ImportError``.

Lock flags:

- `NON_BLOCKING` non-blocking

Manually unlock, only needed internally

- `UNBLOCK` unlock
é    NÚnté   é   é   Úposixz3PortaLocker only defined for nt and posix platformsc                   ó"   — e Zd ZdZeZeZeZ	e
ZdS )Ú	LockFlagsaB  Flags selecting how `portalocker.lock` acquires a file lock.

    Members combine with the bitwise ``|`` operator to build up the
    behavior you want. The library's own default, used when no `flags`
    argument is given, is ``LockFlags.EXCLUSIVE | LockFlags.NON_BLOCKING``:
    take an exclusive lock and fail immediately rather than wait.

    On POSIX platforms these map onto ``fcntl`` locks, which are
    advisory: the OS only enforces them against other processes that
    also lock the file through ``fcntl``/``flock``. A process that opens
    and writes the file without locking it is never blocked. On Windows
    they map onto ``msvcrt`` locks, except `SHARED`, which requires the
    optional ``pywin32`` package (``pip install "portalocker[win32]"``);
    without it, acquiring a shared lock raises `ImportError`.

    Example:
        >>> import portalocker
        >>> flags = (
        ...     portalocker.LockFlags.EXCLUSIVE
        ...     | portalocker.LockFlags.NON_BLOCKING
        ... )
        >>> bool(flags & portalocker.LockFlags.NON_BLOCKING)
        True
    N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚLOCK_EXÚ	EXCLUSIVEÚLOCK_SHÚSHAREDÚLOCK_NBÚNON_BLOCKINGÚLOCK_UNÚUNBLOCK© ó    úZ/root/disk_3tb/conda_envs/Huy-visual/lib/python3.11/site-packages/portalocker/constants.pyr	   r	   8   s4   € € € € € ðð ð: €Ið €Fð €Lð €G€G€Gr   r	   )r   ÚenumÚosÚnameÚmsvcrtr   r   r   ÚLK_UNLCKr   ÚfcntlÚRuntimeErrorÚIntFlagr	   r   r   r   ú<module>r!      sÒ   ððð ð, €€€Ø 	€	€	€	ð „7ˆd‚?€?Ø€M€M€Mð €Gà€Gà€GàŒo€G€Gà„W�ÒÐØ€L€L€Lð Œm€GàŒm€GàŒm€GàŒm€G€Gð ˆ,ÐLÑ
MÔ
MÐMð,ð ,ð ,ð ,ð ,�”ñ ,ô ,ð ,ð ,ð ,r   