??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
ó
V
Qc @ s» d d l Z d d d „ ƒ YZ d d d „ ƒ YZ d d d „ ƒ YZ d d d „ ƒ YZ d
d d „ ƒ YZ d „ Z d
„ Z d „ Z d „ Z d „ Z
d „ Z e d k r· e ƒ n d S( iÿÿÿÿNt conditionc B sD e Z d d „ Z d „ Z d „ Z d „ Z d „ Z d d „ Z RS( c C s | d k r t j ƒ | _ n3 t | d ƒ rH t | d ƒ rH | | _ n t d ‚ t j ƒ | _ | j j ƒ t j ƒ | _ d | _ d | _
d | _ d | _ d | _
d S( Nt acquiret releases. condition constructor requires a lock argumenti ( t Nonet threadt
allocate_lockt mutext hasattrt TypeErrort checkoutR t idlockt idt waitingt pendingt toreleaset releasing( t selft lock( ( s) /usr/lib64/python2.7/Demo/threads/sync.pyt __init__ s
c C s | j j ƒ d S( N( R R ( R ( ( s) /usr/lib64/python2.7/Demo/threads/sync.pyR * s c C s | j j ƒ d S( N( R R ( R ( ( s) /usr/lib64/python2.7/Demo/threads/sync.pyR - s c C s2 | j | j | j } } } | j ƒ s5 t d ‚ n | j ƒ | j } | j d | _ | j ƒ | j ƒ x> | j ƒ | j ƒ | | j k r– Pn | j ƒ | j ƒ qo | j d | _ | j
d | _
| j
rã | j ƒ n7 d | _ | j | j k o d k n rd | _ n | j ƒ | j ƒ d S( Ns1 condition must be .acquire'd when .wait() invokedi i ( R R R
t lockedt
ValueErrorR R R
R R R R ( R R R R
t myid( ( s) /usr/lib64/python2.7/Demo/threads/sync.pyt wait0 s2
"
c C s | j d ƒ d S( Ni ( t broadcast( R ( ( s) /usr/lib64/python2.7/Demo/threads/sync.pyt signalN s iÿÿÿÿc C sè | d k r t d | f ‚ n | d k r/ d S| j j ƒ | j rt | j | j | _ d | _ | j d | _ n | d k r | j | _ n t | j | j | ƒ | _ | j r× | j r× d | _ | j j
ƒ n | j j
ƒ d S( Niÿÿÿÿs .broadcast called with num %ri i ( R R
R R
R R R t minR R R ( R t num( ( s) /usr/lib64/python2.7/Demo/threads/sync.pyR Q s"
N( t __name__t
__module__R R R R R R R ( ( ( s) /usr/lib64/python2.7/Demo/threads/sync.pyR s t barrierc B s e Z d „ Z d „ Z RS( c C s" | | _ | | _ t ƒ | _ d S( N( t nt togoR t full( R R ( ( s) /usr/lib64/python2.7/Demo/threads/sync.pyR f s c C s] | j } | j ƒ | j d | _ | j r9 | j ƒ n | j | _ | j ƒ | j ƒ d S( Ni ( R R R R R R R ( R R ( ( s) /usr/lib64/python2.7/Demo/threads/sync.pyt enterk s
( R R R R! ( ( ( s) /usr/lib64/python2.7/Demo/threads/sync.pyR e s t eventc B s5 e Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( c C s d | _ t ƒ | _ d S( Ni ( t stateR t posted( R ( ( s) /usr/lib64/python2.7/Demo/threads/sync.pyR w s c C s4 | j j ƒ d | _ | j j ƒ | j j ƒ d S( Ni ( R$ R R# R R ( R ( ( s) /usr/lib64/python2.7/Demo/threads/sync.pyt post{ s
c C s' | j j ƒ d | _ | j j ƒ d S( Ni ( R$ R R# R ( R ( ( s) /usr/lib64/python2.7/Demo/threads/sync.pyt clear s
c C s' | j j ƒ | j } | j j ƒ | S( N( R$ R R# R ( R t answer( ( s) /usr/lib64/python2.7/Demo/threads/sync.pyt is_posted† s
c C s7 | j j ƒ | j s&