+
     Bi!                        R t ^ RIt^ RIt^ RIt^ RIt^ RIt^RIHt ^ RIH	t	H
t
 ^RIHtHt . ROt ! R	 R]	]P                  4      t ! R
 R]	]P                   4      t ! R R]	]P$                  4      t^ t^t]P*                  P-                  R]4      tR tR tRR]/R lltR t]P:                  ! 4       t ! R R4      t]P@                  ! ]]]4       R# )z+Cross-interpreter Queues High Level Module.N)_crossinterp)
QueueErrorQueueNotFoundError)UNBOUND_ERRORUNBOUND_REMOVEQueue
QueueEmpty	QueueFullItemInterpreterDestroyedc                       ] tR t^tRtRtR# )r   zaRaised from get_nowait() when the queue is empty.

It is also raised from get() if it times out.
 N__name__
__module____qualname____firstlineno____doc____static_attributes__r       6/usr/lib/python3.14/concurrent/interpreters/_queues.pyr   r          r   c                       ] tR t^"tRtRtR# )r	   z`Raised from put_nowait() when the queue is full.

It is also raised from put() if it times out.
r   Nr   r   r   r   r	   r	   "   r   r   c                       ] tR t^)tRtRtR# )r
   z#Raised from get() and get_nowait().r   Nr   r   r   r   r
   r
   )   s    -r   queuec                 b    V \         J d   \        P                   p \        P                  ! V 4      # N)UNBOUNDr   serialize_unbound)unbounds   &r   _serialize_unboundr   5   s&    '&&))'22r   c                 p    \         P                  ! V \        4      pV\         P                  J d   \        pV# r   )r   resolve_unboundr
   r   )flagresolveds   & r   _resolve_unboundr$   ;   s-    ++D2JKH<'''Or   unbounditemsc                   \        V4      pVw  p\        P                  ! WR4      p\        V4      pVP	                  W14       V# )zReturn a new cross-interpreter queue.

The queue may be used to pass data safely between interpreters.

"unbounditems" sets the default for Queue.put(); see that method for
supported values.  The default value is UNBOUND, which replaces
the unbound item.
)r   _queuescreater   _set_unbound)maxsizer%   r   	unboundopqidselfs   &$    r   r)   r)   B   sA     !.GJI
..R
0C:Di.Kr   c                     . p \         P                  ! 4        F`  w  rp\        V4      p\        VR4      '       g   VP	                  V4       MVP
                  ^ ,          V8X  g   Q hV P                  V4       Kb  	  V # )z!Return a list of all open queues._unbound)r(   list_allr   hasattrr*   r0   append)queuesr-   r,   _r.   s        r   r1   r1   S   sm    F$--/SztZ((i(==#y000d 0 Mr   c                      a a ] tR t^bt oRtV 3R ltR tR tR tR t	RR lt
]R	 4       t]R
 4       t]R 4       tR tR tR tRRRRR/R lltRR/R ltRRR/R lltR tRtVtV ;t# )r   zA cross-interpreter queue.c                 < \        V\        4      '       d   \        V4      pM\        R V: 24      h \        V,          pV#   \         d9    \
        ST `  T 4      pYn        T\        T&   \        P                  ! T4        T# i ; i)zid must be an int, got )

isinstanceint	TypeError_known_queuesKeyErrorsuper__new___idr(   bind)clsidr.   	__class__s   "" r   r>   Queue.__new__e   s    b#RB5bV<==	 $D   	7?3'DH $M"LL	s   A ?BBc                     \         P                  ! V P                  4        \        V P                   R #   \         d     L!i ; i  \
         d     R # i ; ir   )r(   releaser?   r   r;   r<   r.   s   &r   __del__Queue.__del__t   sO    	OODHH%	dhh' " 		  		s     6 A AAAAc                L    \        V 4      P                   R V P                   R2# )())typer   rB   rG   s   &r   __repr__Queue.__repr__~   s$    t*%%&ay22r   c                ,    \        V P                  4      # r   )hashr?   rG   s   &r   __hash__Queue.__hash__   s    DHH~r   c                2    \        V 4      V P                  33# r   )rM   r?   rG   s   &r   
__reduce__Queue.__reduce__   s    T
TXXK((r   Nc                ^    \        V R 4      '       d   Q hVf   \        V4      pW3pW0n        V# )r0   )r2   r$   r0   )r.   opitemsr   s   &&& r   r*   Queue._set_unbound   s5    4,,,,=$R(E+r   c                    V P                   # r   )r?   rG   s   &r   rB   Queue.id   s    xxr   c                     V P                   w  rV#   \         d:    \        P                  ! T P                  4      w  r1T P                  T4      w  r T# i ; ir   )r0   AttributeErrorr(   get_queue_defaultsr?   r*   )r.   r5   rY   rX   s   &   r   r%   Queue.unbounditems   sY    	-}}HA   	-..txx8EB((,HAu	-s    A AAc                     V P                   #   \         d5    \        P                  ! T P                  4      T n         T P                   u # i ; ir   )_maxsizer^   r(   get_maxsizer?   rG   s   &r   r+   Queue.maxsize   s@    	!==  	!#//9DM== 	!s    <AAc                (    V P                  4       ^ 8H  #     )qsizerG   s   &r   emptyQueue.empty   s    zz|q  r   c                B    \         P                  ! V P                  4      # r   )r(   is_fullr?   rG   s   &r   full
Queue.full   s    txx((r   c                B    \         P                  ! V P                  4      # r   )r(   	get_countr?   rG   s   &r   rh   Queue.qsize   s      **r   r%   _delayc                  V'       g   V P                  WR7      # Vf   RpM\        V4      w  pVe:   \        V4      pV^ 8  d   \        R4      h\        P                  ! 4       V,           p  \
        P                  ! V P                  W4       R#   \         dA   pTe   \        P                  ! 4       X8  d   h \        P                  ! T4        Rp?Kk  Rp?ii ; i)a  Add the object to the queue.

If "block" is true, this blocks while the queue is full.

For most objects, the object received through Queue.get() will
be a new one, equivalent to the original and not sharing any
actual underlying data.  The notable exceptions include
cross-interpreter types (like Queue) and memoryview, where the
underlying data is actually shared.  Furthermore, some types
can be sent through a queue more efficiently than others.  This
group includes various immutable types like int, str, bytes, and
tuple (if the items are likewise efficiently shareable).  See interpreters.is_shareable().

"unbounditems" controls the behavior of Queue.get() for the given
object if the current interpreter (calling put()) is later
destroyed.

If "unbounditems" is None (the default) then it uses the
queue's default, set with create_queue(),
which is usually UNBOUND.

If "unbounditems" is UNBOUND_ERROR then get() will raise an
ItemInterpreterDestroyed exception if the original interpreter
has been destroyed.  This does not otherwise affect the queue;
the next call to put() will work like normal, returning the next
item in the queue.

If "unbounditems" is UNBOUND_REMOVE then the item will be removed
from the queue as soon as the original interpreter is destroyed.
Be aware that this will introduce an imbalance between put()
and get() calls.

If "unbounditems" is UNBOUND then it is returned by get() in place
of the unbound item.
)r%   N"timeout value must be non-negativer'   )

put_nowaitr   r9   
ValueErrortimer(   putr?   r	   sleep)	r.   objblocktimeoutr%   rr   r,   endexcs	   &&&&$$   r   rx   	Queue.put   s    N ??3?BBI+L9JI'lG{ #EGG))+'CDHHc5   #&499;#+=

6""#s   .!B C5CCc               p    Vf   RpM\        V4      w  p\        P                  ! V P                  W4       R # )Nr'   )r   r(   rx   r?   )r.   rz   r%   r,   s   &&$ r   ru   Queue.put_nowait   s+    I+L9JIDHHc-r   c                  V'       g   V P                  4       # Ve:   \        V4      pV^ 8  d   \        R4      h\        P                  ! 4       V,           p  \        P
                  ! V P                  4      w  rV Te    Te   Q \        T4      4       h\        T4      # T#   \         dA   pTe   \        P                  ! 4       X8  d   h \        P                  ! T4        Rp?K  Rp?ii ; i)zReturn the next object from the queue.

If "block" is true, this blocks while the queue is empty.

If the next item's original interpreter has been destroyed
then the "next object" is determined by the value of the
"unbounditems" argument to put().
Nrt   )
get_nowaitr9   rv   rw   r(   getr?   r   ry   reprr$   )r.   r{   r|   rr   r}   rz   r,   r~   s   &&&$    r   r   	Queue.get   s     ??$$'lG{ #EGG))+'C!(TXX!6  ;)S	);#I..
  #&499;#+=

6""#s   "B   C++5C&&C+c                     \         P                  ! V P                  4      w  rTe    Te   Q \	        T4      4       h\        T4      # T#   \         d   ph Rp?ii ; i)z}Return the next object from the channel.

If the queue is empty then raise QueueEmpty.  Otherwise this
is the same as get().
N)r(   r   r?   r   r   r$   )r.   rz   r,   r~   s   &   r   r   Queue.get_nowait  s[    	$[[2NC  ;)S	);#I..
  		s   "A	 	AAA)r?   rb   r0   r   )TNg{Gz?)r   r   r   r   r   r>   rH   rN   rR   rU   r*   propertyrB   r%   r+   ri   rm   rh   rx   ru   r   r   r   __classdictcell____classcell__)rC   __classdict__s   @@r   r   r   b   s     $3)     ! !!)+:::x.d .@ r   )r   r   r   r)   r1   r   r   r   r   r	   r
   rf   )!r   pickler   rw   weakref_interpqueuesr(    r   r   r   r   r   __all__Emptyr   Fullr	   r
   _SHARED_ONLY_PICKLEDUnboundItem	singletonr   r   r   r$   r)   r1   WeakValueDictionaryr;   r   _register_heap_typesr   r   r   <module>r      s    1      U[[ 
EJJ .z+DD.
  
"
"
,
,Wh
?3g "
 ++-| |~   UJ	 :r   