config root man

Current Path : /compat/linux/proc/self/root/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 : //compat/linux/proc/self/root/usr/local/lib/python2.5/threading.pyc

³ò
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(cCs$|djo
t}n||_dS(N(tNonet_VERBOSEt_Verbose__verbose(tselftverbose((s%/usr/local/lib/python2.5/threading.pyt__init__'s

cGsE|io7||}dtƒiƒ|f}tii|ƒndS(Ns%s: %s
(RRtgetNamet_syststderrtwrite(Rtformattargs((s%/usr/local/lib/python2.5/threading.pyt_note,s


N(t__name__t
__module__RRR (((s%/usr/local/lib/python2.5/threading.pyR%s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
LsR&cBs\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__R!RR+(Rtowner((s%/usr/local/lib/python2.5/threading.pyt__repr__Ws
		icCstƒ}|i|jo+|id|_|id||ƒdSn|ii|ƒ}|o)||_d|_|id||ƒn|id||ƒ|S(Nis!%s.acquire(%s): recursive successs%s.acquire(%s): initial successs%s.acquire(%s): failure(RR*R+R R)tacquire(Rtblockingtmetrc((s%/usr/local/lib/python2.5/threading.pyR/^s			cCs||itƒj	otdƒ‚n|id|_}|p*d|_|iiƒ|id|ƒn|id|ƒdS(Nscannot release un-aquired lockis%s.release(): final releases%s.release(): non-final release(R*RtRuntimeErrorR+RR)treleaseR (Rtcount((s%/usr/local/lib/python2.5/threading.pyR4rs	
cCs|iƒdS(N(R4(Rtttvttb((s%/usr/local/lib/python2.5/threading.pyt__exit__scCs?|\}}|iiƒ||_||_|id|ƒdS(Ns%s._acquire_restore()(R)R/R+R*R (Rt.1R5R-((s%/usr/local/lib/python2.5/threading.pyt_acquire_restore„s
	
		cCsK|id|ƒ|i}d|_|i}d|_|iiƒ||fS(Ns%s._release_save()i(R R+R*RR)R4(RR5R-((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(R!R"RRR.R/t	__enter__R4R9R;R<R=(((s%/usr/local/lib/python2.5/threading.pyR&Os		
			
cOs
t||ŽS(N(t
_Condition(RR'((s%/usr/local/lib/python2.5/threading.pyR™sR?cBsneZddd„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/R4R<tAttributeErrorR;R=t_Condition__waiters(RtlockR((s%/usr/local/lib/python2.5/threading.pyRžs&

	cCs
|iiƒS(N(R@R>(R((s%/usr/local/lib/python2.5/threading.pyR>·scGs|ii|ŒS(N(R@R9(RR((s%/usr/local/lib/python2.5/threading.pyR9ºscCsd|it|iƒfS(Ns<Condition(%s, %d)>(R@tlenRB(R((s%/usr/local/lib/python2.5/threading.pyR.½scCs|iiƒdS(N(R@R4(R((s%/usr/local/lib/python2.5/threading.pyR<ÀscCs|iiƒdS(N(R@R/(Rtx((s%/usr/local/lib/python2.5/threading.pyR;ÃscCs0|iidƒo|iiƒtSntSdS(Ni(R@R/R4tFalsetTrue(R((s%/usr/local/lib/python2.5/threading.pyR=Æs
c	Csg|iƒptdƒ‚ntƒ}|iƒ|ii|ƒ|iƒ}z|djo|iƒ|id|ƒnØt	ƒ|}d}xft
o^|idƒ}|oPn|t	ƒ}|djoPnt|d|dƒ}t|ƒqW|pA|id||ƒy|ii
|ƒWqQtj
oqQXn|id||ƒWd|i|ƒXdS(	Nscannot wait on un-aquired locks%s.wait(): got itgü©ñÒMb@?iigš™™™™™©?s%s.wait(%s): timed outs%s.wait(%s): got it(R=R3R(R/RBtappendR<RR t_timeRGtmint_sleeptremovet
ValueErrorR;(Rttimeouttwaitertsaved_statetendtimetdelaytgotitt	remaining((s%/usr/local/lib/python2.5/threading.pytwaitÏs<
	





	icCs¿|iƒptdƒ‚n|i}|| }|p|id|ƒdSn|id|||djodpdƒx?|D]7}|iƒy|i|ƒWq€tj
oq€Xq€WdS(Ns cannot notify on un-aquired locks%s.notify(): no waiterss"%s.notify(): notifying %d waiter%sitst(R=R3RBR R4RLRM(RtnRBtwaitersRO((s%/usr/local/lib/python2.5/threading.pytnotifyùs 
	

cCs|it|iƒƒdS(N(RZRDRB(R((s%/usr/local/lib/python2.5/threading.pyt	notifyAllsN(
R!R"RRR>R9R.R<R;R=RURZR[(((s%/usr/local/lib/python2.5/threading.pyR?œs							*cOs
t||ŽS(N(t
_Semaphore(RR'((s%/usr/local/lib/python2.5/threading.pyRsR\cBs;eZddd„Zdd„ZeZd„Zd„ZRS(icCsL|djotdƒ‚nti||ƒttƒƒ|_||_dS(Nis$semaphore initial value must be >= 0(RMRRRR	t_Semaphore__condt_Semaphore__value(RtvalueR((s%/usr/local/lib/python2.5/threading.pyRs

cCsšt}|iiƒxs|idjo6|pPn|id|||iƒ|iiƒqW|id|_|id||iƒt}|iiƒ|S(Nis)%s.acquire(%s): blocked waiting, value=%sis%s.acquire: success, value=%s(RFR]R/R^R RURGR4(RR0R2((s%/usr/local/lib/python2.5/threading.pyR/s
		

cCsQ|iiƒ|id|_|id||iƒ|iiƒ|iiƒdS(Nis%s.release: success, value=%s(R]R/R^R RZR4(R((s%/usr/local/lib/python2.5/threading.pyR42s
	

cCs|iƒdS(N(R4(RR6R7R8((s%/usr/local/lib/python2.5/threading.pyR9;sN(R!R"RRR/R>R4R9(((s%/usr/local/lib/python2.5/threading.pyR\s
		cOs
t||ŽS(N(t_BoundedSemaphore(RR'((s%/usr/local/lib/python2.5/threading.pyR?sR`cBs&eZdZddd„Zd„ZRS(s6Semaphore that checks that # releases is <= # acquiresicCs ti|||ƒ||_dS(N(R\Rt_initial_value(RR_R((s%/usr/local/lib/python2.5/threading.pyRDscCs-|i|ijo
td‚nti|ƒS(Ns!Semaphore released too many times(R^RaRMR\R4(R((s%/usr/local/lib/python2.5/threading.pyR4Hs
N(R!R"t__doc__RRR4(((s%/usr/local/lib/python2.5/threading.pyR`BscOs
t||ŽS(N(t_Event(RR'((s%/usr/local/lib/python2.5/threading.pyRNsRccBs;eZdd„Zd„Zd„Zd„Zdd„ZRS(cCs/ti||ƒttƒƒ|_t|_dS(N(RRRR	t_Event__condRFt_Event__flag(RR((s%/usr/local/lib/python2.5/threading.pyRUscCs|iS(N(Re(R((s%/usr/local/lib/python2.5/threading.pytisSetZscCs<|iiƒzt|_|iiƒWd|iiƒXdS(N(RdR/RGReR[R4(R((s%/usr/local/lib/python2.5/threading.pytset]s

	cCs/|iiƒz
t|_Wd|iiƒXdS(N(RdR/RFReR4(R((s%/usr/local/lib/python2.5/threading.pytcleares

cCsD|iiƒz"|ip|ii|ƒnWd|iiƒXdS(N(RdR/ReRUR4(RRN((s%/usr/local/lib/python2.5/threading.pyRUls


N(R!R"RRRfRgRhRU(((s%/usr/local/lib/python2.5/threading.pyRcQs
			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¾|djp
td‚ti||ƒ|djo
h}n||_t|ptƒƒ|_||_||_	|i
ƒ|_t|_
t|_ttƒƒ|_t|_ti|_dS(Ns#group argument must be None for now(RtAssertionErrorRRt_Thread__targettstrRkt
_Thread__namet
_Thread__argst_Thread__kwargst_set_daemont_Thread__daemonicRFt_Thread__startedt_Thread__stoppedRR	t_Thread__blockRGt_Thread__initializedRRt_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.pyRrŸscCst|ip
td‚d}|io
d}n|io
d}n|io|d}nd|ii|i|fS(Ns Thread.__init__() was not calledtinitialtstartedtstoppeds daemons<%s(%s, %s)>(RwRlRtRuRsR,R!Ro(Rtstatus((s%/usr/local/lib/python2.5/threading.pyR.£s




cCs‰|iptdƒ‚n|iotdƒ‚n|id|ƒtiƒ|t|<tiƒt|i	dƒt
|_tdƒdS(Nsthread.__init__() not calledsthread already starteds%s.start(): starting threadgíµ ÷Æ°>((RwR3RtR t_active_limbo_lockR/t_limboR4t_start_new_threadt_Thread__bootstrapRGRK(R((s%/usr/local/lib/python2.5/threading.pytstart®s




	cCs(|io|i|i|iŽndS(N(RmRpRq(R((s%/usr/local/lib/python2.5/threading.pytrun¼s
cCs>y|iƒWn)|iotdjodSn‚nXdS(N(t_Thread__bootstrap_innerRsRR(R((s%/usr/local/lib/python2.5/threading.pyt__bootstrapÀs
cCszÉt|_tiƒ|ttƒ<t|=tiƒ|id|ƒt	o!|id|ƒt
it	ƒnto!|id|ƒt
i
tƒny|iƒWntj
o|id|ƒn|id|ƒt
o't
iid|iƒtƒfƒqÈ|iƒ\}}}zŠ|id|iƒdIJ|id	IJxD|o<|id
|iii|i|iiifIJ|i}qKW|id||fIJWd~~~XnX|id|ƒWdtiƒz&|iƒyttƒ=WnnXWdtiƒXXdS(
Ns %s.__bootstrap(): thread starteds(%s.__bootstrap(): registering trace hooks*%s.__bootstrap(): registering profile hooks#%s.__bootstrap(): raised SystemExits%%s.__bootstrap(): unhandled exceptionsException 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: %ss%s.__bootstrap(): normal return(RGRtRR/t_activet
_get_identR‚R4R R%RRR#RR†t
SystemExitRRRt_format_exct_Thread__exc_infoRxttb_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(RvR/RGRuR[R4(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(RR/R‰RŠtKeyErrorRtmodulesR4(R((s%/usr/local/lib/python2.5/threading.pyt__delete!s
cCsF|iptdƒ‚n|iptdƒ‚n|tƒjotdƒ‚n|ip|id|ƒn|iiƒz²|djo3x|ip|ii	ƒq’W|id|ƒnot
ƒ|}x^|ipC|t
ƒ}|djo|id|ƒPn|ii	|ƒqÒW|id|ƒWd|iiƒXdS(NsThread.__init__() not calleds'cannot join thread before it is startedscannot join current threads%%s.join(): waiting until thread stopss%s.join(): thread stoppedis%s.join(): timed out(RwR3RtRRuR RvR/RRURIR4(RRNtdeadlineRR((s%/usr/local/lib/python2.5/threading.pytjoinCs2









cCs|ip
td‚|iS(NsThread.__init__() not called(RwRlRo(R((s%/usr/local/lib/python2.5/threading.pyRdscCs'|ip
td‚t|ƒ|_dS(NsThread.__init__() not called(RwRlRnRo(RR{((s%/usr/local/lib/python2.5/threading.pytsetNamehscCs&|ip
td‚|io|iS(NsThread.__init__() not called(RwRlRtRu(R((s%/usr/local/lib/python2.5/threading.pytisAlivelscCs|ip
td‚|iS(NsThread.__init__() not called(RwRlRs(R((s%/usr/local/lib/python2.5/threading.pyR|pscCsA|iptdƒ‚n|iotdƒ‚n||_dS(NsThread.__init__() not calleds)cannot set daemon status of active thread(RwR3RtRs(Rtdaemonic((s%/usr/local/lib/python2.5/threading.pyt	setDaemonts


N((R!R"RFRwRtexc_infoRRRRrR.R…R†R„R‡R”t_Thread__deleteRŸRR R¡R|R£(((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©Rg(R((s%/usr/local/lib/python2.5/threading.pytcancelscCsN|ii|iƒ|iiƒp|i|i|iŽn|iiƒdS(N(R©RUR§RfR¨RR'Rg(R((s%/usr/local/lib/python2.5/threading.pyR†”s(R!R"RbRRªR†(((s%/usr/local/lib/python2.5/threading.pyR¦€s	t_MainThreadcBs#eZd„Zd„Zd„ZRS(cCsAti|ddƒt|_tiƒ|ttƒ<tiƒdS(NR{t
MainThread(	R
RRGRtRR/R‰RŠR4(R((s%/usr/local/lib/python2.5/threading.pyRŸs
	

cCstS(N(RF(R((s%/usr/local/lib/python2.5/threading.pyRr¦scCsn|iƒtƒ}|o|id|ƒnx|o|iƒtƒ}q1W|id|ƒ|iƒdS(Ns%s: waiting for other threadss%s: exiting(R”t_pickSomeNonDaemonThreadR RŸR¥(RR6((s%/usr/local/lib/python2.5/threading.pyt	_exitfunc©s
	
(R!R"RRrR®(((s%/usr/local/lib/python2.5/threading.pyR«s		cCs;x4tƒD])}|iƒo|iƒo|Sq
q
WdS(N(RR|R¡R(R6((s%/usr/local/lib/python2.5/threading.pyR­¶s

t_DummyThreadcBs&eZd„Zd„Zdd„ZRS(cCsMti|dtdƒƒ|`t|_tiƒ|tt	ƒ<ti
ƒdS(NR{sDummy-%d(R
RRkRvRGRtRR/R‰RŠR4(R((s%/usr/local/lib/python2.5/threading.pyRÇs	

cCstS(N(RG(R((s%/usr/local/lib/python2.5/threading.pyRrÔscCstp
td‚dS(Nscannot join a dummy thread(RFRl(RRN((s%/usr/local/lib/python2.5/threading.pyRŸ×sN(R!R"RRrRRŸ(((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(RR/RDR‰R‚R4(R5((s%/usr/local/lib/python2.5/threading.pyRäs

cCs.tiƒtiƒtiƒ}tiƒ|S(N(RR/R‰tvaluesR‚R4(tactive((s%/usr/local/lib/python2.5/threading.pyRês

(R(t_local(RcCsÀtƒah}tƒ}tiƒzŒxJtiƒD]<}||jo tƒ}||_|||<q2t|_	q2Wt
iƒtiƒti|ƒt
tƒdjpt‚WdtiƒXdS(Ni(R(RRR/R‰t
itervaluesRŠt_Thread__identRGRuR‚RhtupdateRDRlR4(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
tmonRR2twctlimitRtqueue(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/RDR¿R¾R R½RURHR2RZR4(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¿R R2RUtpopleftRDR½RZR4(RRÀ((s%/usr/local/lib/python2.5/threading.pytget?s




(R!R"RRÁRÃ(((s%/usr/local/lib/python2.5/threading.pyR»*s		tProducerThreadcBseZd„Zd„ZRS(cSs)ti|ddƒ||_||_dS(NR{tProducer(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ÁRRK(RRÇtcounter((s%/usr/local/lib/python2.5/threading.pyR†Qs
 (R!R"RR†(((s%/usr/local/lib/python2.5/threading.pyRÄJs	tConsumerThreadcBseZd„Zd„ZRS(cSs)ti|ddƒ||_||_dS(NR{tConsumer(R
RR¿R5(RR¿R5((s%/usr/local/lib/python2.5/threading.pyR\s	cSs@x9|idjo(|iiƒ}|GH|id|_qWdS(Nii(R5R¿RÃ(RRÀ((s%/usr/local/lib/python2.5/threading.pyR†as
(R!R"RR†(((s%/usr/local/lib/python2.5/threading.pyRÉZs	iiisProducer-%digíµ ÷Æ°>(RR
trangeR RHR…RKRŸ(R»RÄRÉtNPtQLtNItQtPtiR6tC((s%/usr/local/lib/python2.5/threading.pyt_test(s. 



t__main__(CRbtsysRR¸tImportErrorRœR!RRIRRKt	tracebackRRŒtcollectionsRt__all__tstart_new_threadRƒt
allocate_lockR(t	get_identRŠterrortThreadErrorRFRtobjectRRR#R%RRR	R
R&RR?RR\RR`RRcRiRkRR‰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