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× | d j p
t d ‚ 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( Ns# group argument must be None for nowt -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 AssertionErrorR t _countert nextt _identityt _authkeyt _daemonict _tempdirt ost getpidt _parent_pidR 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 s¦ | i d j p
t d ‚ | i t i ƒ j p
t d ‚ t i p
t d ‚ t ƒ | i d j o
| i } n d d k
l } | | ƒ | _ t i i
| ƒ d S( s%
Start child process
s cannot start a process twices: can only start a process object created by current processs3 daemonic processes are not allowed to have childreni ( t PopenN( R R R R R R R R R t _Popent forkingR- 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.pyR2 k s c C sq | i t i ƒ j p
t d ‚ | i d j p
t d ‚ | i i | ƒ } | d j o t i i | ƒ n d S( s5
Wait until child process terminates
s can only join a child processs can only join a started processN(
R R R R R R t waitR R R
( R$ t timeoutt res( ( s- /usr/lib/python2.6/multiprocessing/process.pyR"