
    .Ph                     z    d dl Z d dlmZ d dlmZ  G d de          Z G d de          Z G d d	e          ZdS )
    N)assert_spawning)BaseProcessc                   J     e Zd ZdZddddi dddf fd	Zed             Z xZS )LokyProcesslokyN Fc	                     t                                          ||||||           |i n|| _        | j        | _        || _        d S )N)grouptargetnameargskwargsdaemon)super__init__envauthkeyinit_main_module)
selfr
   r   r   r   r   r   r   r   	__class__s
            e/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/joblib/externals/loky/backend/process.pyr   zLokyProcess.__init__   s`     	 	 	
 	
 	
 22#| 0    c                 R    t           j        dk    rddlm} nddlm}  ||           S )Nwin32   )Popen)sysplatformpopen_loky_win32r   popen_loky_posix)process_objr   s     r   _PopenzLokyProcess._Popen'   sF    <7""/////////////u[!!!r   )__name__
__module____qualname___start_methodr   staticmethodr"   __classcell__r   s   @r   r   r      sw        M 1 1 1 1 1 1. " " \" " " " "r   r   c                   0     e Zd ZdZddddi df fd	Z xZS )LokyInitMainProcessloky_init_mainNr   c           	      X    t                                          ||||||d           d S )NT)r
   r   r   r   r   r   r   )r   r   )r   r
   r   r   r   r   r   r   s          r   r   zLokyInitMainProcess.__init__3   sE     	! 	 	
 	
 	
 	
 	
r   )r#   r$   r%   r&   r   r(   r)   s   @r   r+   r+   0   sV        $M 
 
 
 
 
 
 
 
 
 
r   r+   c                       e Zd Zd ZdS )AuthenticationKeyc                     	 t          |            n# t          $ r t          d          w xY wt          t	          |           ffS )NzGPickling an AuthenticationKey object is disallowed for security reasons)r   RuntimeError	TypeErrorr/   bytes)r   s    r   
__reduce__zAuthenticationKey.__reduce__M   s_    	D!!!! 	 	 	2  	
 !5;;.00s    ,N)r#   r$   r%   r4   r   r   r   r/   r/   L   s#        1 1 1 1 1r   r/   )	r   multiprocessing.contextr   multiprocessing.processr   r   r+   r3   r/   r   r   r   <module>r7      s    


 3 3 3 3 3 3 / / / / / / "  "  "  "  "+  "  "  "F
 
 
 
 
+ 
 
 
8	1 	1 	1 	1 	1 	1 	1 	1 	1 	1r   