%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/lib/python2.7/multiprocessing/
Upload File :
Create Path :
Current File : //usr/local/lib/python2.7/multiprocessing/reduction.pyo

ó
Pêáac@sgZddlZddlZddlZddlZddlZddlmZddlm	Z	m
Z
mZmZddl
mZmZmZddlmZmZejdkpÁeedƒsÓedƒ‚nejdkrddlZdd	lmZd
„Zd„Znd„Zd
„Zeƒad„Zedƒeeeƒd„Zd„Z d„Z!d„Z"d„Z#d„Z$ej%ej&e#ƒdd„Z'd„Z(d„Z)ej%eje(ƒejdkrÿd„Z*d„Z+ej%ej,e*ƒndS(iÿÿÿÿN(tcurrent_process(tPopent	duplicatetclosetForkingPickler(tregister_after_forktdebugt	sub_debug(tClienttListenertwin32trecvfds%pickling of connections not supported(R
cCsJtjtjt|ƒ}z t||ƒ}|j|ƒWdt|ƒXdS(N(R
tOpenProcesstPROCESS_ALL_ACCESStFalseRtsendR(tconnthandletdestination_pidtprocess_handlet
new_handle((s5/usr/local/lib/python2.7/multiprocessing/reduction.pytsend_handleAscCs
|jƒS(N(trecv(R((s5/usr/local/lib/python2.7/multiprocessing/reduction.pytrecv_handleKscCstj|jƒ|ƒdS(N(t_multiprocessingtsendfdtfileno(RRR((s5/usr/local/lib/python2.7/multiprocessing/reduction.pyROscCstj|jƒƒS(N(RRR(R((s5/usr/local/lib/python2.7/multiprocessing/reduction.pyRRscCs;xtD]}t|ƒqWtjƒtjƒadadS(N(t_cacheRtcleart	threadingtLockt_locktNonet	_listener(tobjth((s5/usr/local/lib/python2.7/multiprocessing/reduction.pyt_reset[s


cCs‚tdkr~tjƒzWtdkrltdƒtdtƒjƒatj	dt
ƒ}t|_|j
ƒnWdtjƒXntS(Ns0starting listener and thread for sending handlestauthkeyttarget(R!R RtacquireRR	RR%RtThreadt_servetTruetdaemontstarttrelease(tt((s5/usr/local/lib/python2.7/multiprocessing/reduction.pyt
_get_listenerfs

	cCs¾ddlm}m}x¡yStjƒ}|jƒ\}}tj|ƒt|||ƒt	|ƒ|j	ƒWq|ƒs¶ddl
}|dddd|jƒddƒq¶qXqWdS(Ni(t
is_exitingtsub_warningiÿÿÿÿs.thread for sharing handles raised exception :
t-iOs
(tutilR0R1R!tacceptRRtremoveRRt	tracebackt
format_exc(R0R1Rt
handle_wantedRR6((s5/usr/local/lib/python2.7/multiprocessing/reduction.pyR)ws

	cCs[tjƒr"dtj|ƒtfSt|ƒ}tj|ƒtd|ƒt	ƒj
|tfS(Nsreducing handle %d(Rtthread_is_spawningR tduplicate_for_childR*RRtaddRR/taddressR(Rt
dup_handle((s5/usr/local/lib/python2.7/multiprocessing/reduction.pyt
reduce_handleŽs

cCsq|\}}}|r|Std|ƒt|dtƒjƒ}|j|tjƒfƒt|ƒ}|jƒ|S(Nsrebuilding handle %dR%(	RRRR%RtostgetpidRR(tpickled_dataR<Rt	inheritedRR((s5/usr/local/lib/python2.7/multiprocessing/reduction.pytrebuild_handle–s

cCs+t|jƒƒ}t||j|jffS(N(R>Rtrebuild_connectiontreadabletwritable(Rtrh((s5/usr/local/lib/python2.7/multiprocessing/reduction.pytreduce_connection¥scCs%t|ƒ}tj|d|d|ƒS(NRERF(RCRt
Connection(treduced_handleRERFR((s5/usr/local/lib/python2.7/multiprocessing/reduction.pyRD©sicCsCtj||||ƒ}|jtjk	r?tjd|ƒ}n|S(Nt_sock(tsockettfromfdt	__class__(tfdtfamilyttype_tprotots((s5/usr/local/lib/python2.7/multiprocessing/reduction.pyRMµscCs1t|jƒƒ}t||j|j|jffS(N(R>Rtrebuild_socketRPttypeRR(RSRJ((s5/usr/local/lib/python2.7/multiprocessing/reduction.pyt
reduce_socket»scCs/t|ƒ}t||||ƒ}t|ƒ|S(N(RCRMR(RJRPRQRRRORK((s5/usr/local/lib/python2.7/multiprocessing/reduction.pyRT¿s
cCs+t|jƒƒ}t||j|jffS(N(R>Rtrebuild_pipe_connectionRERF(RRG((s5/usr/local/lib/python2.7/multiprocessing/reduction.pytreduce_pipe_connectionÍscCs%t|ƒ}tj|d|d|ƒS(NRERF(RCRtPipeConnection(RJRERFR((s5/usr/local/lib/python2.7/multiprocessing/reduction.pyRWÑs(-t__all__R?tsysRLRRtmultiprocessingRtmultiprocessing.forkingRRRRtmultiprocessing.utilRRRtmultiprocessing.connectionRR	tplatformthasattrtImportErrort_subprocessR
RRtsetRR$R R/R)R>RCRHRDtregisterRIRMRVRTRXRWRY(((s5/usr/local/lib/python2.7/multiprocessing/reduction.pyt<module>$sJ"	
				

										

Zerion Mini Shell 1.0