Current Path: > > opt > alt > python34 > lib64 > python3.4 > multiprocessing > __pycache__ > >
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__init__.cpython-34.pyc | File | 566 bytes | April 17 2024 17:10:07. | |
__init__.cpython-34.pyo | File | 566 bytes | April 17 2024 17:10:07. | |
connection.cpython-34.pyc | File | 27549 bytes | April 17 2024 17:10:07. | |
connection.cpython-34.pyo | File | 27174 bytes | April 17 2024 17:10:03. | |
context.cpython-34.pyc | File | 13538 bytes | April 17 2024 17:10:07. | |
context.cpython-34.pyo | File | 13538 bytes | April 17 2024 17:10:07. | |
forkserver.cpython-34.pyc | File | 7253 bytes | April 17 2024 17:10:07. | |
forkserver.cpython-34.pyo | File | 7139 bytes | April 17 2024 17:10:03. | |
heap.cpython-34.pyc | File | 6729 bytes | April 17 2024 17:10:07. | |
heap.cpython-34.pyo | File | 6483 bytes | April 17 2024 17:10:03. | |
managers.cpython-34.pyc | File | 35766 bytes | April 17 2024 17:10:07. | |
managers.cpython-34.pyo | File | 35144 bytes | April 17 2024 17:10:03. | |
pool.cpython-34.pyc | File | 23150 bytes | April 17 2024 17:10:07. | |
pool.cpython-34.pyo | File | 22836 bytes | April 17 2024 17:10:03. | |
popen_fork.cpython-34.pyc | File | 2460 bytes | April 17 2024 17:10:07. | |
popen_fork.cpython-34.pyo | File | 2410 bytes | April 17 2024 17:10:03. | |
popen_forkserver.cpython-34.pyc | File | 2549 bytes | April 17 2024 17:10:07. | |
popen_forkserver.cpython-34.pyo | File | 2549 bytes | April 17 2024 17:10:07. | |
popen_spawn_posix.cpython-34.pyc | File | 2320 bytes | April 17 2024 17:10:07. | |
popen_spawn_posix.cpython-34.pyo | File | 2320 bytes | April 17 2024 17:10:07. | |
popen_spawn_win32.cpython-34.pyc | File | 3074 bytes | April 17 2024 17:10:07. | |
popen_spawn_win32.cpython-34.pyo | File | 3007 bytes | April 17 2024 17:10:03. | |
process.cpython-34.pyc | File | 8928 bytes | April 17 2024 17:10:07. | |
process.cpython-34.pyo | File | 8196 bytes | April 17 2024 17:10:03. | |
queues.cpython-34.pyc | File | 10071 bytes | April 17 2024 17:10:07. | |
queues.cpython-34.pyo | File | 9977 bytes | April 17 2024 17:10:03. | |
reduction.cpython-34.pyc | File | 7784 bytes | April 17 2024 17:10:07. | |
reduction.cpython-34.pyo | File | 7729 bytes | April 17 2024 17:10:03. | |
resource_sharer.cpython-34.pyc | File | 5650 bytes | April 17 2024 17:10:07. | |
resource_sharer.cpython-34.pyo | File | 5611 bytes | April 17 2024 17:10:03. | |
semaphore_tracker.cpython-34.pyc | File | 3726 bytes | April 17 2024 17:10:07. | |
semaphore_tracker.cpython-34.pyo | File | 3686 bytes | April 17 2024 17:10:03. | |
sharedctypes.cpython-34.pyc | File | 7333 bytes | April 17 2024 17:10:07. | |
sharedctypes.cpython-34.pyo | File | 7258 bytes | April 17 2024 17:10:03. | |
spawn.cpython-34.pyc | File | 7084 bytes | April 17 2024 17:10:07. | |
spawn.cpython-34.pyo | File | 7035 bytes | April 17 2024 17:10:03. | |
synchronize.cpython-34.pyc | File | 12347 bytes | April 17 2024 17:10:07. | |
synchronize.cpython-34.pyo | File | 12026 bytes | April 17 2024 17:10:03. | |
util.cpython-34.pyc | File | 9658 bytes | April 17 2024 17:10:07. | |
util.cpython-34.pyo | File | 9520 bytes | April 17 2024 17:10:03. |
� e f� � @ s� d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l m Z d d l m Z d d d g Z Gd d � d e � Z e � Z e j Z e j Z e j Z e j Z d d � Z d S)� N� )�spawn)�util�ensure_running�register� unregisterc @ sX e Z d Z d d � Z d d � Z d d � Z d d � Z d d � Z d d � Z d S)�SemaphoreTrackerc C s t j � | _ d | _ d S)N)� threadingZLock�_lock�_fd)�self� r �F/opt/alt/python34/lib64/python3.4/multiprocessing/semaphore_tracker.py�__init__ s zSemaphoreTracker.__init__c C s | j � | j S)N)r r )r r r r �getfd! s zSemaphoreTracker.getfdc C s | j �� | j d k r d Sg } y | j t j j � � Wn t k rQ Yn Xd } t j � \ } } z yW | j | � t j � } | g t j � } | d | | g 7} t j | | | � Wn t j | � � Yn X| | _ Wd t j | � XWd QXd S)z�Make sure that semaphore tracker process is running. This can be run from any process. Usually a child process will use the semaphore created by its parent.Nz;from multiprocessing.semaphore_tracker import main;main(%d)z-c)r r �append�sys�stderr�fileno� Exception�os�piper Zget_executabler Z_args_from_interpreter_flagsZspawnv_passfds�close)r Zfds_to_pass�cmd�r�wZexe�argsr r r r % s* zSemaphoreTracker.ensure_runningc C s | j d | � d S)z2Register name of semaphore with semaphore tracker.ZREGISTERN)�_send)r �namer r r r C s zSemaphoreTracker.registerc C s | j d | � d S)z4Unregister name of semaphore with semaphore tracker.Z UNREGISTERN)r )r r r r r r G s zSemaphoreTracker.unregisterc C s_ | j � d j | | � j d � } t | � d k rF t d � � n t j | j | � } d S)Nz{0}:{1} �asciii z name too long)r �format�encode�len� ValueErrorr �writer )r r r �msg�nbytesr r r r K s zSemaphoreTracker._sendN) �__name__� __module__�__qualname__r r r r r r r r r r r s r c , C s� t j t j t j � t j t j t j � x= t j t j f D]) } y | j � Wq? t k rg Yq? Xq? Wt � } z� t | d � �� } x� | D]� } yg | j � j d � \ } } | d k r� | j | � n, | d k r� | j | � n t d | � � Wq� t k r4y t j t j � � Wn Yn XYq� Xq� WWd QXWd | r|y t j d t | � � Wq|t k rxYq|Xn xu | D]m } zc | j d � } y t j | � Wn<