config root man

Current Path : /usr/local/lib/python2.5/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/local/lib/python2.5/threading.pyo

³ò
h”Rc@sàdZddkZyddkZWn ej
oeie=‚nXddklZl	Z
ddklZ
ddklZdddd	d
ddd
dddddddgZeiZeiZeiZeiZ[eZdefd„ƒYZdadad„Z d„Z!eZ"d„Z#defd„ƒYZ$d„Z%defd„ƒYZ&d„Z'd efd!„ƒYZ(d"„Z)d#e(fd$„ƒYZ*d%„Z+d&efd'„ƒYZ,d(a-d)d*„Z.eƒa/hZ0hZ1defd+„ƒYZ2d,„Z3d-e2fd.„ƒYZ4d/e2fd0„ƒYZ5d1„Z6d2e2fd3„ƒYZ7d4„Z8d5„Z9d6„Z:dd7kl;Z;e5ƒi<Z=ydd8kl>Z?Wn#ej
odd9k@l?Z?nXd:„ZAd;„ZBed<joeBƒndS(=s;Thread module emulating a subset of Java's threading model.iÿÿÿÿN(ttimetsleep(t
format_exc(tdequetactiveCountt	Conditiont
currentThreadt	enumeratetEventtLocktRLockt	SemaphoretBoundedSemaphoretThreadtTimert
setprofiletsettracetlocalt
stack_sizet_VerbosecBseZdd„Zd„ZRS(cCsdS(N((tselftverbose((s%/usr/local/lib/python2.5/threading.pyt__init__6scGsdS(N((Rtargs((s%/usr/local/lib/python2.5/threading.pyt_note8sN(t__name__t
__module__tNoneRR(((s%/usr/local/lib/python2.5/threading.pyR5scCs
|adS(N(t
_profile_hook(tfunc((s%/usr/local/lib/python2.5/threading.pyR@scCs
|adS(N(t_trace_hook(R((s%/usr/local/lib/python2.5/threading.pyRDscOs
t||ŽS(N(t_RLock(Rtkwargs((s%/usr/local/lib/python2.5/threading.pyR
LsRcBs\eZd	d„Zd„Zdd„ZeZd„Zd„Zd„Z	d„Z
d„ZRS(
cCs2ti||ƒtƒ|_d|_d|_dS(Ni(RRt_allocate_lockt
_RLock__blockRt
_RLock__ownert
_RLock__count(RR((s%/usr/local/lib/python2.5/threading.pyRQs	cCs0|i}d|ii|o
|iƒ|ifS(Ns<%s(%s, %d)>(R#t	__class__RtgetNameR$(Rtowner((s%/usr/local/lib/python2.5/threading.pyt__repr__Ws
		icCsdtƒ}|i|jo|id|_dSn|ii|ƒ}|o||_d|_n|S(Ni(RR#R$R"tacquire(Rtblockingtmetrc((s%/usr/local/lib/python2.5/threading.pyR)^s			cCs\|itƒj	otdƒ‚n|id|_}|pd|_|iiƒndS(Nscannot release un-aquired locki(R#RtRuntimeErrorR$RR"trelease(Rtcount((s%/usr/local/lib/python2.5/threading.pyR.rs	
cCs|iƒdS(N(R.(Rtttvttb((s%/usr/local/lib/python2.5/threading.pyt__exit__scCs/|\}}|iiƒ||_||_dS(N(R"R)R$R#(Rt.1R/R'((s%/usr/local/lib/python2.5/threading.pyt_acquire_restore„s
	
		cCs;|i}d|_|i}d|_|iiƒ||fS(Ni(R$R#RR"R.(RR/R'((s%/usr/local/lib/python2.5/threading.pyt
_release_save‹s				
cCs|itƒjS(N(R#R(R((s%/usr/local/lib/python2.5/threading.pyt	_is_owned•sN(RRRRR(R)t	__enter__R.R3R5R6R7(((s%/usr/local/lib/python2.5/threading.pyROs		
			
cOs
t||ŽS(N(t
_Condition(RR ((s%/usr/local/lib/python2.5/threading.pyR™sR9cBsneZddd„Zd„Zd„Zd„Zd„Zd„Zd„Z	dd„Z
dd	„Zd
„ZRS(cCsÊti||ƒ|djo
tƒ}n||_|i|_|i|_y|i|_Wntj
onXy|i	|_	Wntj
onXy|i
|_
Wntj
onXg|_dS(N(RRRR
t_Condition__lockR)R.R6tAttributeErrorR5R7t_Condition__waiters(RtlockR((s%/usr/local/lib/python2.5/threading.pyRžs&

	cCs
|iiƒS(N(R:R8(R((s%/usr/local/lib/python2.5/threading.pyR8·scGs|ii|ŒS(N(R:R3(RR((s%/usr/local/lib/python2.5/threading.pyR3ºscCsd|it|iƒfS(Ns<Condition(%s, %d)>(R:tlenR<(R((s%/usr/local/lib/python2.5/threading.pyR(½scCs|iiƒdS(N(R:R.(R((s%/usr/local/lib/python2.5/threading.pyR6ÀscCs|iiƒdS(N(R:R)(Rtx((s%/usr/local/lib/python2.5/threading.pyR5ÃscCs0|iidƒo|iiƒtSntSdS(Ni(R:R)R.tFalsetTrue(R((s%/usr/local/lib/python2.5/threading.pyR7Æs
c	Cs1|iƒptdƒ‚ntƒ}|iƒ|ii|ƒ|iƒ}zÐ|djo|iƒn²tƒ|}d}xft	o^|idƒ}|oPn|tƒ}|djoPnt
|d|dƒ}t|ƒq€W|p.y|ii|ƒWqt
j
oqXnWd|i|ƒXdS(Nscannot wait on un-aquired lockgü©ñÒMb@?iigš™™™™™©?(R7R-R!R)R<tappendR6Rt_timeRAtmint_sleeptremovet
ValueErrorR5(Rttimeouttwaitertsaved_statetendtimetdelaytgotitt	remaining((s%/usr/local/lib/python2.5/threading.pytwaitÏs:
	





	icCs¯|iƒptdƒ‚n|i}|| }|pdSn|id|||djodpdƒx?|D]7}|iƒy|i|ƒWqptj
oqpXqpWdS(Ns cannot notify on un-aquired locks"%s.notify(): notifying %d waiter%sitst(R7R-R<RR.RFRG(RtnR<twaitersRI((s%/usr/local/lib/python2.5/threading.pytnotifyùs
	

cCs|it|iƒƒdS(N(RTR>R<(R((s%/usr/local/lib/python2.5/threading.pyt	notifyAllsN(
RRRRR8R3R(R6R5R7RORTRU(((s%/usr/local/lib/python2.5/threading.pyR9œs							*cOs
t||ŽS(N(t
_Semaphore(RR ((s%/usr/local/lib/python2.5/threading.pyRsRVcBs;eZddd„Zdd„ZeZd„Zd„ZRS(icCsL|djotdƒ‚nti||ƒttƒƒ|_||_dS(Nis$semaphore initial value must be >= 0(RGRRRR	t_Semaphore__condt_Semaphore__value(RtvalueR((s%/usr/local/lib/python2.5/threading.pyRs

cCskt}|iiƒxD|idjo|pPn|iiƒqW|id|_t}|iiƒ|S(Nii(R@RWR)RXRORAR.(RR*R,((s%/usr/local/lib/python2.5/threading.pyR)s

cCs;|iiƒ|id|_|iiƒ|iiƒdS(Ni(RWR)RXRTR.(R((s%/usr/local/lib/python2.5/threading.pyR.2s

cCs|iƒdS(N(R.(RR0R1R2((s%/usr/local/lib/python2.5/threading.pyR3;sN(RRRRR)R8R.R3(((s%/usr/local/lib/python2.5/threading.pyRVs
		cOs
t||ŽS(N(t_BoundedSemaphore(RR ((s%/usr/local/lib/python2.5/threading.pyR?sRZcBs&eZdZddd„Zd„ZRS(s6Semaphore that checks that # releases is <= # acquiresicCs ti|||ƒ||_dS(N(RVRt_initial_value(RRYR((s%/usr/local/lib/python2.5/threading.pyRDscCs-|i|ijo
td‚nti|ƒS(Ns!Semaphore released too many times(RXR[RGRVR.(R((s%/usr/local/lib/python2.5/threading.pyR.Hs
N(RRt__doc__RRR.(((s%/usr/local/lib/python2.5/threading.pyRZBscOs
t||ŽS(N(t_Event(RR ((s%/usr/local/lib/python2.5/threading.pyRNsR]cBs;eZdd„Zd„Zd„Zd„Zdd„ZRS(cCs/ti||ƒttƒƒ|_t|_dS(N(RRRR	t_Event__condR@t_Event__flag(RR((s%/usr/local/lib/python2.5/threading.pyRUscCs|iS(N(R_(R((s%/usr/local/lib/python2.5/threading.pytisSetZscCs<|iiƒzt|_|iiƒWd|iiƒXdS(N(R^R)RAR_RUR.(R((s%/usr/local/lib/python2.5/threading.pytset]s

	cCs/|iiƒz
t|_Wd|iiƒXdS(N(R^R)R@R_R.(R((s%/usr/local/lib/python2.5/threading.pytcleares

cCsD|iiƒz"|ip|ii|ƒnWd|iiƒXdS(N(R^R)R_ROR.(RRH((s%/usr/local/lib/python2.5/threading.pyROls


N(RRRRR`RaRbRO(((s%/usr/local/lib/python2.5/threading.pyR]Qs
			is	Thread-%dcCstda|tS(Ni(t_counter(ttemplate((s%/usr/local/lib/python2.5/threading.pyt_newnamevs
cBs³eZeZeiZddddddd„Zd„Z	d„Z
d„Zd„Zd„Z
d„Zd„Zd„Zdd	„Zd
„Zd„Zd„Zd
„Zd„ZRS(cCs§ti||ƒ|djo
h}n||_t|ptƒƒ|_||_||_|i	ƒ|_
t|_t|_
ttƒƒ|_t|_ti|_dS(N(RRRt_Thread__targettstrRet
_Thread__namet
_Thread__argst_Thread__kwargst_set_daemont_Thread__daemonicR@t_Thread__startedt_Thread__stoppedRR	t_Thread__blockRAt_Thread__initializedt_syststderrt_Thread__stderr(RtgroupttargettnameRR R((s%/usr/local/lib/python2.5/threading.pyRŒs

						cCs
tƒiƒS(N(RtisDaemon(R((s%/usr/local/lib/python2.5/threading.pyRkŸscCs`d}|io
d}n|io
d}n|io|d}nd|ii|i|fS(Ntinitialtstartedtstoppeds daemons<%s(%s, %s)>(RmRnRlR%RRh(Rtstatus((s%/usr/local/lib/python2.5/threading.pyR(£s




cCsy|iptdƒ‚n|iotdƒ‚ntiƒ|t|<tiƒt|idƒt	|_t
dƒdS(Nsthread.__init__() not calledsthread already startedgíµ ÷Æ°>((RpR-Rmt_active_limbo_lockR)t_limboR.t_start_new_threadt_Thread__bootstrapRARE(R((s%/usr/local/lib/python2.5/threading.pytstart®s




	cCs(|io|i|i|iŽndS(N(RfRiRj(R((s%/usr/local/lib/python2.5/threading.pytrun¼s
cCs>y|iƒWn)|iotdjodSn‚nXdS(N(t_Thread__bootstrap_innerRlRqR(R((s%/usr/local/lib/python2.5/threading.pyt__bootstrapÀs
cCsÏz‰t|_tiƒ|ttƒ<t|=tiƒto!|i	d|ƒt
itƒnto!|i	d|ƒt
i
tƒny|iƒWnótj
onât
o't
iid|iƒtƒfƒqˆ|iƒ\}}}zŠ|id|iƒdIJ|idIJxD|o<|id|iii|i|iiifIJ|i}qW|id||fIJWd~~~XnXWdtiƒz&|iƒyttƒ=WnnXWdtiƒXXdS(	Ns(%s.__bootstrap(): registering trace hooks*%s.__bootstrap(): registering profile hooksException in thread %s:
%s
sException in thread s2 (most likely raised during interpreter shutdown):s"Traceback (most recent call last):s  File "%s", line %s, in %ss%s: %s(RARmR|R)t_activet
_get_identR}R.RRRqRRRRt
SystemExitRrtwriteR&t_format_exct_Thread__exc_infoRsttb_frametf_codetco_filenamet	tb_linenotco_namettb_nextt
_Thread__stop(Rtexc_typet	exc_valuetexc_tb((s%/usr/local/lib/python2.5/threading.pyt__bootstrap_innerÔs\	





cCs4|iiƒt|_|iiƒ|iiƒdS(N(RoR)RARnRUR.(R((s%/usr/local/lib/python2.5/threading.pyt__stops
	
cCs[tiƒz?yttƒ=Wn*tj
odtijo‚qHnXWdtiƒXdS(sARemove current thread from the dict of currently running threads.tdummy_threadingN(R|R)R„R…tKeyErrorRqtmodulesR.(R((s%/usr/local/lib/python2.5/threading.pyt__delete!s
cCsø|iptdƒ‚n|iptdƒ‚n|tƒjotdƒ‚n|iiƒz‚|djo#xn|ip|iiƒqtWnOt	ƒ|}x>|ip3|t	ƒ}|djoPn|ii|ƒq¤WWd|ii
ƒXdS(NsThread.__init__() not calleds'cannot join thread before it is startedscannot join current threadi(RpR-RmRRoR)RRnRORCR.(RRHtdeadlineRL((s%/usr/local/lib/python2.5/threading.pytjoinCs,








cCs|iS(N(Rh(R((s%/usr/local/lib/python2.5/threading.pyR&dscCst|ƒ|_dS(N(RgRh(RRv((s%/usr/local/lib/python2.5/threading.pytsetNamehscCs|io|iS(N(RmRn(R((s%/usr/local/lib/python2.5/threading.pytisAlivelscCs|iS(N(Rl(R((s%/usr/local/lib/python2.5/threading.pyRwpscCsA|iptdƒ‚n|iotdƒ‚n||_dS(NsThread.__init__() not calleds)cannot set daemon status of active thread(RpR-RmRl(Rtdaemonic((s%/usr/local/lib/python2.5/threading.pyt	setDaemonts


N((RRR@RpRqtexc_infoR‰RRRkR(R€RRR‚Rt_Thread__deleteR›R&RœRRwRŸ(((s%/usr/local/lib/python2.5/threading.pyR
ƒs$								G		"!				cOs
t||ŽS(N(t_Timer(RR ((s%/usr/local/lib/python2.5/threading.pyR}sR¢cBs/eZdZghd„Zd„Zd„ZRS(s²Call a function after a specified number of seconds:

    t = Timer(30.0, f, args=[], kwargs={})
    t.start()
    t.cancel() # stop the timer's action if it's still waiting
    cCsAti|ƒ||_||_||_||_tƒ|_dS(N(R
RtintervaltfunctionRR Rtfinished(RR£R¤RR ((s%/usr/local/lib/python2.5/threading.pyRˆs
				cCs|iiƒdS(s(Stop the timer if it hasn't finished yetN(R¥Ra(R((s%/usr/local/lib/python2.5/threading.pytcancelscCsN|ii|iƒ|iiƒp|i|i|iŽn|iiƒdS(N(R¥ROR£R`R¤RR Ra(R((s%/usr/local/lib/python2.5/threading.pyR”s(RRR\RR¦R(((s%/usr/local/lib/python2.5/threading.pyR¢€s	t_MainThreadcBs#eZd„Zd„Zd„ZRS(cCsAti|ddƒt|_tiƒ|ttƒ<tiƒdS(NRvt
MainThread(	R
RRARmR|R)R„R…R.(R((s%/usr/local/lib/python2.5/threading.pyRŸs
	

cCstS(N(R@(R((s%/usr/local/lib/python2.5/threading.pyRk¦scCsN|iƒtƒ}|onx|o|iƒtƒ}q!W|iƒdS(N(Rt_pickSomeNonDaemonThreadR›R¡(RR0((s%/usr/local/lib/python2.5/threading.pyt	_exitfunc©s
	
(RRRRkRª(((s%/usr/local/lib/python2.5/threading.pyR§s		cCs;x4tƒD])}|iƒo|iƒo|Sq
q
WdS(N(RRwRR(R0((s%/usr/local/lib/python2.5/threading.pyR©¶s

t_DummyThreadcBs&eZd„Zd„Zdd„ZRS(cCsMti|dtdƒƒ|`t|_tiƒ|tt	ƒ<ti
ƒdS(NRvsDummy-%d(R
RReRoRARmR|R)R„R…R.(R((s%/usr/local/lib/python2.5/threading.pyRÇs	

cCstS(N(RA(R((s%/usr/local/lib/python2.5/threading.pyRkÔscCsdS(N((RRH((s%/usr/local/lib/python2.5/threading.pyR›×sN(RRRRkRR›(((s%/usr/local/lib/python2.5/threading.pyR«Ås	
	cCs0yttƒSWntj
otƒSnXdS(N(R„R…R—R«(((s%/usr/local/lib/python2.5/threading.pyRÝscCs.tiƒttƒttƒ}tiƒ|S(N(R|R)R>R„R}R.(R/((s%/usr/local/lib/python2.5/threading.pyRäs

cCs.tiƒtiƒtiƒ}tiƒ|S(N(R|R)R„tvaluesR}R.(tactive((s%/usr/local/lib/python2.5/threading.pyRês

(R(t_local(RcCs¦tƒah}tƒ}tiƒzrxJtiƒD]<}||jo tƒ}||_|||<q2t|_	q2Wt
iƒtiƒti|ƒWdti
ƒXdS(N(R!R|RR)R„t
itervaluesR…t_Thread__identRARnR}RbtupdateR.(t
new_activetcurrenttthreadtident((s%/usr/local/lib/python2.5/threading.pyt_after_forks"		


		



cCsdtfd„ƒY}dtfd„ƒY}dtfd„ƒY}d}d}d	}||ƒ}g}xEt|ƒD]7}|||ƒ}	|	id
|dƒ|i|	ƒqsW||||ƒ}
x"|D]}	|	iƒtdƒqÈW|
iƒx|D]}	|	iƒq÷W|
iƒdS(
NtBoundedQueuecBs#eZd„Zd„Zd„ZRS(cSsVti|ƒtƒ|_t|iƒ|_t|iƒ|_||_tƒ|_	dS(N(
RRR
tmonRR,twctlimitRtqueue(RRº((s%/usr/local/lib/python2.5/threading.pyR,s
	cSs•|iiƒx;t|iƒ|ijo!|id|ƒ|iiƒqW|ii|ƒ|id|t|iƒƒ|i	i
ƒ|iiƒdS(Nsput(%s): queue fulls put(%s): appended, length now %d(R¸R)R>R»RºRR¹RORBR,RTR.(Rtitem((s%/usr/local/lib/python2.5/threading.pytput4s
	
cSs‚|iiƒx)|ip|idƒ|iiƒqW|iiƒ}|id|t|iƒƒ|ii	ƒ|ii
ƒ|S(Nsget(): queue emptysget(): got %s, %d left(R¸R)R»RR,ROtpopleftR>R¹RTR.(RR¼((s%/usr/local/lib/python2.5/threading.pytget?s




(RRRR½R¿(((s%/usr/local/lib/python2.5/threading.pyR·*s		tProducerThreadcBseZd„Zd„ZRS(cSs)ti|ddƒ||_||_dS(NRvtProducer(R
RR»tquota(RR»RÂ((s%/usr/local/lib/python2.5/threading.pyRLs	cSsmddkl}d}xP||ijo?|d}|iid|iƒ|fƒt|ƒdƒqWdS(Niÿÿÿÿ(trandomiis%s.%dgñh㈵øä>(RÃRÂR»R½R&RE(RRÃtcounter((s%/usr/local/lib/python2.5/threading.pyRQs
 (RRRR(((s%/usr/local/lib/python2.5/threading.pyRÀJs	tConsumerThreadcBseZd„Zd„ZRS(cSs)ti|ddƒ||_||_dS(NRvtConsumer(R
RR»R/(RR»R/((s%/usr/local/lib/python2.5/threading.pyR\s	cSs@x9|idjo(|iiƒ}|GH|id|_qWdS(Nii(R/R»R¿(RR¼((s%/usr/local/lib/python2.5/threading.pyRas
(RRRR(((s%/usr/local/lib/python2.5/threading.pyRÅZs	iiisProducer-%digíµ ÷Æ°>(RR
trangeRœRBR€RER›(R·RÀRÅtNPtQLtNItQtPtiR0tC((s%/usr/local/lib/python2.5/threading.pyt_test(s. 



t__main__(CR\tsysRqR´tImportErrorR˜RRRCRREt	tracebackRRˆtcollectionsRt__all__tstart_new_threadR~t
allocate_lockR!t	get_identR…terrortThreadErrorR@t_VERBOSEtobjectRRRRRRR	R
RRR9RRVRRZRR]RcReR|R„R}R
RR¢R§R©R«RRRRRªt	_shutdownR®Rt_threading_localR¶RÏ(((s%/usr/local/lib/python2.5/threading.pys<module>st
								J	s	-		$	ú						'	R


Man Man