MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /proc/self/root/proc/self/root/usr/lib/python2.4/test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/proc/self/root/usr/lib/python2.4/test/test_threadsignals.pyo
mň
Đ=Ec@sďdZdkZdkZdkZdkZdkZdklZlZei	d djpei	djoedei	‚nei
ƒZeiƒZ
d„Zd	„Zd
„Zdeifd„ƒYZd
„ZedjoeƒndS(s6PyUnit testing that threads honor our signal semanticsN(srun_unittestsTestSkippeditwintos2triscossCan't test signal on %scCs[|\}}}titi|ƒ}titi|ƒ}titi|ƒ}|||fS(N(
tfor_usr1tfor_usr2tfor_alrmtsignaltSIGUSR1tusr1tSIGUSR2tusr2tSIGALRMtalrm(t.0RRRR
RR((t-/usr/lib/python2.4/test/test_threadsignals.pytregisterSignalsscCs,t|dcd7<tiƒt|d<dS(Nttrippedit
tripped_by(tsignal_blackboardtsigtthreadt	get_ident(Rtframe((Rthandle_signalsscCs4tittiƒtittiƒtiƒdS(N(tostkilltprocess_pidRRR	t
signalled_alltrelease(((Rtsend_signalsst
ThreadSignalscBs tZdZd„Zd„ZRS(sŢTest signal handling semantics of threads.
       We spawn a thread, have the thread send two signals, and
       wait for it to finish. Check that we got both signals
       and that they were run by the main thread.
    cCsütiƒ|iƒtiƒttiddjpttiddjo(tidƒtiƒtidƒn|i	tti
ddƒ|i	tti
dtiƒƒ|i	ttiddƒ|i	ttidtiƒƒti
ƒdS(NRiiR(RtacquiretselftspawnSignallingThreadRRR	talarmtpausetassertEqualRRRR(R ((Rttest_signals*s


0



cCstitfƒdS(N(Rtstart_new_threadR(R ((RR!Bs(t__name__t
__module__t__doc__R%R!(((RR$s	cCs•htihdd<dd<<tihdd<dd<<tihdd<dd<<attttfƒ}ztt	ƒWdt|ƒXdS(NRiR(
RRR	RRRRtoldsigstrun_unittestR(R*((Rt	test_mainFs`t__main__(RR(R)tunittestRRRtsysttest.test_supportR+tTestSkippedtplatformtgetpidRt
allocate_lockRRRRtTestCaseRR,R'(R1RR.RR/RRR+RRRRRR,((Rt?s"					$				"	



Anon7 - 2021