Yohohohohohooho | Sanrei Aya
Sanrei Aya


Server : LiteSpeed
System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
User : elvh3918 ( 1528)
PHP Version : 8.2.31
Disable Function : mail
Directory :  /lib/python3.9/site-packages/ansible/utils/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3.9/site-packages/ansible/utils/__pycache__/lock.cpython-39.pyc
a

�)gn�@s2ddlmZmZmZeZddlmZddd�ZdS)�)�absolute_import�division�print_function��wraps�missing_lock_attrNcs��fdd�}|S)aoThis decorator is a generic implementation that allows you
    to either use a pre-defined instance attribute as the location
    of the lock, or to explicitly pass a lock object.

    This code was implemented with ``threading.Lock`` in mind, but
    may work with other locks, assuming that they function as
    context managers.

    When using ``attr``, the assumption is the first argument to
    the wrapped method, is ``self`` or ``cls``.

    Examples:

        @lock_decorator(attr='_callback_lock')
        def send_callback(...):

        @lock_decorator(lock=threading.Lock())
        def some_method(...):
    cst�����fdd��}|S)NcsR�durt|d��}n�}|��|i|��Wd�S1sD0YdS)Nr)�getattr)�args�kwargs�_lock)�attr�func�lock��6/usr/lib/python3.9/site-packages/ansible/utils/lock.py�inner s
z,lock_decorator.<locals>.outer.<locals>.innerr)r
r�rr)r
r�outers	zlock_decorator.<locals>.outerr)rrrrrr�lock_decoratorsr)rN)	Z
__future__rrr�typeZ
__metaclass__�	functoolsrrrrrr�<module>s

Yohohohohohooho | Sanrei Aya