
    Ǆg                     ^    d dl Z dgZe j                  dk(  rd dlmZ d Zd Zyd dlZd Zd Zy)    Nregister_after_forkwin32c                 D      fd}t        j                  t        |       y )Nc                              y )N )argfuncs    e/home/mcse/projects/flask_80/flask-venv/lib/python3.12/site-packages/torch/multiprocessing/_atfork.pywrapperz_register.<locals>.wrapper   s    F    )_utilr   	_register)r	   r   s   ` r
   r   r   
   s    	 	!!)W5r   c                 0    t        j                  |        y )N)after_in_child)osregister_at_forkr	   s    r
   r   r      s    
40r   c                     t        |        y)ah  Register a callable to be executed in the child process after a fork.

    Note:
        In python < 3.7 this will only work with processes created using the
        ``multiprocessing`` module. In python >= 3.7 it also works with
        ``os.fork()``.

    Args:
        func (function): Function taking no arguments to be called in the child after fork

    N)r   r   s    r
   r   r      s     dOr   )	sys__all__platformmultiprocessing.utilutilr   r   r   r   r   r   r
   <module>r      s:    
 !
!<<7(6 1r   