ACC SHELL
Ñò
tÄMc @ s7 d d d g Z d d k Z d d k Z d d k Z d d k Z y e i i e i ƒ ƒ Z Wn e j
o
d Z n Xd „ Z d „ Z d „ Z
d e f d „ ƒ YZ d e f d
„ ƒ YZ d e f d „ ƒ YZ e ƒ a [ h Z xJ e i i ƒ D]9 \ Z Z e d
d j o d e j o e e e <qö qö Wd S( t Processt current_processt active_childreniÿÿÿÿNc C s t S( s@
Return process object representing the current process
( t _current_process( ( ( s- /usr/lib/python2.6/multiprocessing/process.pyR ! s c C s t ƒ t t i ƒ S( sN
Return list of process objects corresponding to live child processes
( t _cleanupt listR t _children( ( ( s- /usr/lib/python2.6/multiprocessing/process.pyR ' s c C sH xA t t i ƒ D]0 } | i i ƒ d j o t i i | ƒ q q Wd S( N( R R R t _popent pollt Nonet discard( t p( ( s- /usr/lib/python2.6/multiprocessing/process.pyR 2 s c B sõ e Z d Z d Z d d d d h d „ Z d „ Z d „ Z d „ Z d d „ Z d „ Z
e d „ ƒ Z e i
d „ ƒ Z e d „ ƒ Z e i
d
„ ƒ Z e d „ ƒ Z e i
d „ ƒ Z e d
„ ƒ Z e d „ ƒ Z e Z d „ Z d „ Z RS( s€
Process objects represent activity that is run in a separate process
The class is analagous to `threading.Thread`
c C sÀ t i i ƒ } t i | f | _ t i | _ t i | _ t i | _ t i ƒ | _ d | _ | | _ t
| ƒ | _ t | ƒ | _ | p+ t | ƒ i d d i d „ | i Dƒ ƒ | _ d S( Nt -t :c s s x | ] } t | ƒ Vq Wd S( N( t str( t .0t i( ( s- /usr/lib/python2.6/multiprocessing/process.pys <genexpr>Q s ( R t _countert nextt _identityt _authkeyt _daemonict _tempdirt ost getpidt _parent_pidR R t _targett tuplet _argst dictt _kwargst typet __name__t joint _name( t selft groupt targett namet argst kwargst count( ( s- /usr/lib/python2.6/multiprocessing/process.pyt __init__D s c C s( | i o | i | i | i Ž n d S( sQ
Method to be run in sub-process; can be overridden in sub-class
N( R R R ( R# ( ( s- /usr/lib/python2.6/multiprocessing/process.pyt runS s
c C sW t ƒ | i d j o
| i } n d d k l } | | ƒ | _ t i i | ƒ d S( s%
Start child process
i ( t PopenN( R t _PopenR t forkingR, R R R t add( R# R, ( ( s- /usr/lib/python2.6/multiprocessing/process.pyt startZ s
c C s | i i ƒ d S( sT
Terminate process; sends SIGTERM signal or uses TerminateProcess()
N( R t terminate( R# ( ( s- /usr/lib/python2.6/multiprocessing/process.pyR1 k s c C s7 | i i | ƒ } | d j o t i i | ƒ n d S( s5
Wait until child process terminates
N( R t waitR R R R
( R# t timeoutt res( ( s- /usr/lib/python2.6/multiprocessing/process.pyR! q s
c C sD | t j o t S| i d j o t S| i i ƒ | i i d j S( s1
Return whether process is alive
N( R t TrueR R t FalseR t
returncode( R# ( ( s- /usr/lib/python2.6/multiprocessing/process.pyt is_alive{ s
c C s | i S( N( R"