config root man

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

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/bsddb/test/test_lock.pyo

³ò
h”Rc@s+dZddkZddkZddkZddkZddkZddklZy ddklZl	Z	dZ
Wnej
o
dZ
nXddkZddk
lZyddklZWn#ej
oddklZnXd	eifd
„ƒYZd„Zedjoeid
dƒndS(s/
TestCases for testing the locking sub-system.
iÿÿÿÿN(tpprint(tThreadt
currentThreadii(tverbose(tdbtLockingTestCasecBs>eZd„Zd„Zd„Zd„Zd„Zd„ZRS(cCs™tiitiitidƒdƒ}||_yti|ƒWntij
onXt	i
ƒ|_|ii|t	i
t	iBt	iBt	iBƒdS(Nitdb_home(tostpathtjointdirnametsystargvthomeDirtmkdirterrorRtDBEnvtenvtopent	DB_THREADt
DB_INIT_MPOOLtDB_INIT_LOCKt	DB_CREATE(tselfR
((s0/usr/local/lib/python2.5/bsddb/test/test_lock.pytsetUp s(	cCs\|iiƒddk}|itii|idƒƒ}x|D]}ti|ƒqAWdS(Niÿÿÿÿt*(RtclosetglobRRR	R
tremove(RRtfilestfile((s0/usr/local/lib/python2.5/bsddb/test/test_lock.pyttearDown*s
!cCs®to dGddGHd|iiGHn|iiƒ}to
d|GHn|ii|dtiƒ}to
d|GHnti	dƒ|ii
|ƒto
d	|GHndS(
Ns
s-=isRunning %s.test01_simple...s
locker ID: %sssome locked thingsAquired lock: %sisReleased lock: %s(Rt	__class__t__name__Rtlock_idtlock_getRt
DB_LOCK_WRITEttimetsleeptlock_put(RtanIDtlock((s0/usr/local/lib/python2.5/bsddb/test/test_lock.pyt
test01_simple2s



cCsÏto dGddGHd|iiGHng}|itd|iddtifƒƒ|itd|iddtifƒƒ|itd|iddtifƒƒ|itd|iddtifƒƒ|itd|iddtifƒƒ|itd|iddtifƒƒ|itd|iddtifƒƒ|itd|iddtifƒƒ|itd|iddtifƒƒx|D]}|i	ƒqœWx|D]}|i
ƒq·WdS(	Ns
s-=isRunning %s.test02_threaded...ttargettargsii(RR R!tappendRt	theThreadRR$tDB_LOCK_READtstartR	(Rtthreadstt((s0/usr/local/lib/python2.5/bsddb/test/test_lock.pyttest02_threadedEs8
cCsst|idƒo\|iidtiƒ|iidtiƒ|iidtiƒ|iidtiƒndS(Ntset_timeoutii@âiËdx(thasattrRR4RtDB_SET_LOCK_TIMEOUTtDB_SET_TXN_TIMEOUT(R((s0/usr/local/lib/python2.5/bsddb/test/test_lock.pyttest03_set_timeoutcs
cCsËtƒiƒ}|tijo
d}nd}|iiƒ}tod||fGHn|ii|d|ƒ}tod|||fGHnti	|ƒ|ii
|ƒtod|||fGHndS(Ntwritetreads%s: locker ID: %sssome locked things%s: Aquired %s lock: %ss%s: Released %s lock: %s(RtgetNameRR$RR"RR#R%R&R'(Rt	sleepTimetlockTypetnametltR(R)((s0/usr/local/lib/python2.5/bsddb/test/test_lock.pyR.ks

(R!t
__module__RRR*R3R8R.(((s0/usr/local/lib/python2.5/bsddb/test/test_lock.pyRs	
				cCsJtiƒ}to|ititƒƒn|ititdƒƒ|S(Nttest01(tunittestt	TestSuitethave_threadstaddTestt	makeSuiteR(tsuite((s0/usr/local/lib/python2.5/bsddb/test/test_lock.pyt
test_suiteƒs
t__main__tdefaultTestRH(t__doc__RRtstringttempfileR%Rt	threadingRRRDtImportErrorRBttest_allRtbsddb3RtbsddbtTestCaseRRHR!tmain(((s0/usr/local/lib/python2.5/bsddb/test/test_lock.pys<module>s&$
e	


Man Man