summaryrefslogtreecommitdiff
path: root/lib/python2.7/sched.pyo
blob: 09d53430f3a2135d35dee92257024f8a6a1bd615 (plain)
ofshex dumpascii
0000 03 f3 0d 0a 2f 5c fc 55 63 00 00 00 00 00 00 00 00 03 00 00 00 40 00 00 00 73 51 00 00 00 64 00 ..../\.Uc............@...sQ...d.
0020 00 5a 00 00 64 01 00 64 02 00 6c 01 00 5a 01 00 64 01 00 64 03 00 6c 02 00 6d 03 00 5a 03 00 01 .Z..d..d..l..Z..d..d..l..m..Z...
0040 64 04 00 67 01 00 5a 04 00 65 03 00 64 05 00 64 06 00 83 02 00 5a 05 00 64 04 00 64 08 00 64 07 d..g..Z..e..d..d.....Z..d..d..d.
0060 00 84 00 00 83 00 00 59 5a 06 00 64 02 00 53 28 09 00 00 00 73 c6 04 00 00 41 20 67 65 6e 65 72 .......YZ..d..S(....s....A.gener
0080 61 6c 6c 79 20 75 73 65 66 75 6c 20 65 76 65 6e 74 20 73 63 68 65 64 75 6c 65 72 20 63 6c 61 73 ally.useful.event.scheduler.clas
00a0 73 2e 0a 0a 45 61 63 68 20 69 6e 73 74 61 6e 63 65 20 6f 66 20 74 68 69 73 20 63 6c 61 73 73 20 s...Each.instance.of.this.class.
00c0 6d 61 6e 61 67 65 73 20 69 74 73 20 6f 77 6e 20 71 75 65 75 65 2e 0a 4e 6f 20 6d 75 6c 74 69 2d manages.its.own.queue..No.multi-
00e0 74 68 72 65 61 64 69 6e 67 20 69 73 20 69 6d 70 6c 69 65 64 3b 20 79 6f 75 20 61 72 65 20 73 75 threading.is.implied;.you.are.su
0100 70 70 6f 73 65 64 20 74 6f 20 68 61 63 6b 20 74 68 61 74 0a 79 6f 75 72 73 65 6c 66 2c 20 6f 72 pposed.to.hack.that.yourself,.or
0120 20 75 73 65 20 61 20 73 69 6e 67 6c 65 20 69 6e 73 74 61 6e 63 65 20 70 65 72 20 61 70 70 6c 69 .use.a.single.instance.per.appli
0140 63 61 74 69 6f 6e 2e 0a 0a 45 61 63 68 20 69 6e 73 74 61 6e 63 65 20 69 73 20 70 61 72 61 6d 65 cation...Each.instance.is.parame
0160 74 72 69 7a 65 64 20 77 69 74 68 20 74 77 6f 20 66 75 6e 63 74 69 6f 6e 73 2c 20 6f 6e 65 20 74 trized.with.two.functions,.one.t
0180 68 61 74 20 69 73 0a 73 75 70 70 6f 73 65 64 20 74 6f 20 72 65 74 75 72 6e 20 74 68 65 20 63 75 hat.is.supposed.to.return.the.cu
01a0 72 72 65 6e 74 20 74 69 6d 65 2c 20 6f 6e 65 20 74 68 61 74 20 69 73 20 73 75 70 70 6f 73 65 64 rrent.time,.one.that.is.supposed
01c0 20 74 6f 0a 69 6d 70 6c 65 6d 65 6e 74 20 61 20 64 65 6c 61 79 2e 20 20 59 6f 75 20 63 61 6e 20 .to.implement.a.delay...You.can.
01e0 69 6d 70 6c 65 6d 65 6e 74 20 72 65 61 6c 2d 74 69 6d 65 20 73 63 68 65 64 75 6c 69 6e 67 20 62 implement.real-time.scheduling.b
0200 79 0a 73 75 62 73 74 69 74 75 74 69 6e 67 20 74 69 6d 65 20 61 6e 64 20 73 6c 65 65 70 20 66 72 y.substituting.time.and.sleep.fr
0220 6f 6d 20 62 75 69 6c 74 2d 69 6e 20 6d 6f 64 75 6c 65 20 74 69 6d 65 2c 20 6f 72 20 79 6f 75 20 om.built-in.module.time,.or.you.
0240 63 61 6e 0a 69 6d 70 6c 65 6d 65 6e 74 20 73 69 6d 75 6c 61 74 65 64 20 74 69 6d 65 20 62 79 20 can.implement.simulated.time.by.
0260 77 72 69 74 69 6e 67 20 79 6f 75 72 20 6f 77 6e 20 66 75 6e 63 74 69 6f 6e 73 2e 20 20 54 68 69 writing.your.own.functions...Thi
0280 73 20 63 61 6e 0a 61 6c 73 6f 20 62 65 20 75 73 65 64 20 74 6f 20 69 6e 74 65 67 72 61 74 65 20 s.can.also.be.used.to.integrate.
02a0 73 63 68 65 64 75 6c 69 6e 67 20 77 69 74 68 20 53 54 44 57 49 4e 20 65 76 65 6e 74 73 3b 20 74 scheduling.with.STDWIN.events;.t
02c0 68 65 20 64 65 6c 61 79 0a 66 75 6e 63 74 69 6f 6e 20 69 73 20 61 6c 6c 6f 77 65 64 20 74 6f 20 he.delay.function.is.allowed.to.
02e0 6d 6f 64 69 66 79 20 74 68 65 20 71 75 65 75 65 2e 20 20 54 69 6d 65 20 63 61 6e 20 62 65 20 65 modify.the.queue...Time.can.be.e
0300 78 70 72 65 73 73 65 64 20 61 73 0a 69 6e 74 65 67 65 72 73 20 6f 72 20 66 6c 6f 61 74 69 6e 67 xpressed.as.integers.or.floating
0320 20 70 6f 69 6e 74 20 6e 75 6d 62 65 72 73 2c 20 61 73 20 6c 6f 6e 67 20 61 73 20 69 74 20 69 73 .point.numbers,.as.long.as.it.is
0340 20 63 6f 6e 73 69 73 74 65 6e 74 2e 0a 0a 45 76 65 6e 74 73 20 61 72 65 20 73 70 65 63 69 66 69 .consistent...Events.are.specifi
0360 65 64 20 62 79 20 74 75 70 6c 65 73 20 28 74 69 6d 65 2c 20 70 72 69 6f 72 69 74 79 2c 20 61 63 ed.by.tuples.(time,.priority,.ac
0380 74 69 6f 6e 2c 20 61 72 67 75 6d 65 6e 74 29 2e 0a 41 73 20 69 6e 20 55 4e 49 58 2c 20 6c 6f 77 tion,.argument)..As.in.UNIX,.low
03a0 65 72 20 70 72 69 6f 72 69 74 79 20 6e 75 6d 62 65 72 73 20 6d 65 61 6e 20 68 69 67 68 65 72 20 er.priority.numbers.mean.higher.
03c0 70 72 69 6f 72 69 74 79 3b 20 69 6e 20 74 68 69 73 0a 77 61 79 20 74 68 65 20 71 75 65 75 65 20 priority;.in.this.way.the.queue.
03e0 63 61 6e 20 62 65 20 6d 61 69 6e 74 61 69 6e 65 64 20 61 73 20 61 20 70 72 69 6f 72 69 74 79 20 can.be.maintained.as.a.priority.
0400 71 75 65 75 65 2e 20 20 45 78 65 63 75 74 69 6f 6e 20 6f 66 20 74 68 65 0a 65 76 65 6e 74 20 6d queue...Execution.of.the.event.m
0420 65 61 6e 73 20 63 61 6c 6c 69 6e 67 20 74 68 65 20 61 63 74 69 6f 6e 20 66 75 6e 63 74 69 6f 6e eans.calling.the.action.function
0440 2c 20 70 61 73 73 69 6e 67 20 69 74 20 74 68 65 20 61 72 67 75 6d 65 6e 74 0a 73 65 71 75 65 6e ,.passing.it.the.argument.sequen
0460 63 65 20 69 6e 20 22 61 72 67 75 6d 65 6e 74 22 20 28 72 65 6d 65 6d 62 65 72 20 74 68 61 74 20 ce.in."argument".(remember.that.
0480 69 6e 20 50 79 74 68 6f 6e 2c 20 6d 75 6c 74 69 70 6c 65 20 66 75 6e 63 74 69 6f 6e 0a 61 72 67 in.Python,.multiple.function.arg
04a0 75 6d 65 6e 74 73 20 61 72 65 20 62 65 20 70 61 63 6b 65 64 20 69 6e 20 61 20 73 65 71 75 65 6e uments.are.be.packed.in.a.sequen
04c0 63 65 29 2e 0a 54 68 65 20 61 63 74 69 6f 6e 20 66 75 6e 63 74 69 6f 6e 20 6d 61 79 20 62 65 20 ce)..The.action.function.may.be.
04e0 61 6e 20 69 6e 73 74 61 6e 63 65 20 6d 65 74 68 6f 64 20 73 6f 20 69 74 0a 68 61 73 20 61 6e 6f an.instance.method.so.it.has.ano
0500 74 68 65 72 20 77 61 79 20 74 6f 20 72 65 66 65 72 65 6e 63 65 20 70 72 69 76 61 74 65 20 64 61 ther.way.to.reference.private.da
0520 74 61 20 28 62 65 73 69 64 65 73 20 67 6c 6f 62 61 6c 20 76 61 72 69 61 62 6c 65 73 29 2e 0a 69 ta.(besides.global.variables)..i
0540 ff ff ff ff 4e 28 01 00 00 00 74 0a 00 00 00 6e 61 6d 65 64 74 75 70 6c 65 74 09 00 00 00 73 63 ....N(....t....namedtuplet....sc
0560 68 65 64 75 6c 65 72 74 05 00 00 00 45 76 65 6e 74 73 20 00 00 00 74 69 6d 65 2c 20 70 72 69 6f hedulert....Events....time,.prio
0580 72 69 74 79 2c 20 61 63 74 69 6f 6e 2c 20 61 72 67 75 6d 65 6e 74 63 00 00 00 00 00 00 00 00 02 rity,.action,.argumentc.........
05a0 00 00 00 42 00 00 00 73 4d 00 00 00 65 00 00 5a 01 00 64 00 00 84 00 00 5a 02 00 64 01 00 84 00 ...B...sM...e..Z..d.....Z..d....
05c0 00 5a 03 00 64 02 00 84 00 00 5a 04 00 64 03 00 84 00 00 5a 05 00 64 04 00 84 00 00 5a 06 00 64 .Z..d.....Z..d.....Z..d.....Z..d
05e0 05 00 84 00 00 5a 07 00 65 08 00 64 06 00 84 00 00 83 01 00 5a 09 00 52 53 28 07 00 00 00 63 03 .....Z..e..d........Z..RS(....c.
0600 00 00 00 03 00 00 00 02 00 00 00 43 00 00 00 73 1f 00 00 00 67 00 00 7c 00 00 5f 00 00 7c 01 00 ...........C...s....g..|.._..|..
0620 7c 00 00 5f 01 00 7c 02 00 7c 00 00 5f 02 00 64 01 00 53 28 02 00 00 00 73 47 00 00 00 49 6e 69 |.._..|..|.._..d..S(....sG...Ini
0640 74 69 61 6c 69 7a 65 20 61 20 6e 65 77 20 69 6e 73 74 61 6e 63 65 2c 20 70 61 73 73 69 6e 67 20 tialize.a.new.instance,.passing.
0660 74 68 65 20 74 69 6d 65 20 61 6e 64 20 64 65 6c 61 79 0a 20 20 20 20 20 20 20 20 66 75 6e 63 74 the.time.and.delay.........funct
0680 69 6f 6e 73 4e 28 03 00 00 00 74 06 00 00 00 5f 71 75 65 75 65 74 08 00 00 00 74 69 6d 65 66 75 ionsN(....t...._queuet....timefu
06a0 6e 63 74 09 00 00 00 64 65 6c 61 79 66 75 6e 63 28 03 00 00 00 74 04 00 00 00 73 65 6c 66 52 04 nct....delayfunc(....t....selfR.
06c0 00 00 00 52 05 00 00 00 28 00 00 00 00 28 00 00 00 00 73 4c 00 00 00 2f 62 75 69 6c 64 62 6f 74 ...R....(....(....sL.../buildbot
06e0 2f 74 6d 70 2f 62 75 69 6c 64 68 6f 73 74 2f 69 6e 73 74 61 6c 6c 2f 70 72 65 62 75 69 6c 74 2f /tmp/buildhost/install/prebuilt/
0700 6c 69 6e 75 78 2d 78 38 36 5f 36 34 2f 6c 69 62 2f 70 79 74 68 6f 6e 32 2e 37 2f 73 63 68 65 64 linux-x86_64/lib/python2.7/sched
0720 2e 70 79 74 08 00 00 00 5f 5f 69 6e 69 74 5f 5f 27 00 00 00 73 06 00 00 00 00 03 09 01 09 01 63 .pyt....__init__'...s..........c
0740 05 00 00 00 06 00 00 00 05 00 00 00 43 00 00 00 73 2c 00 00 00 74 00 00 7c 01 00 7c 02 00 7c 03 ............C...s,...t..|..|..|.
0760 00 7c 04 00 83 04 00 7d 05 00 74 01 00 6a 02 00 7c 00 00 6a 03 00 7c 05 00 83 02 00 01 7c 05 00 .|.....}..t..j..|..j..|......|..
0780 53 28 01 00 00 00 73 98 00 00 00 45 6e 74 65 72 20 61 20 6e 65 77 20 65 76 65 6e 74 20 69 6e 20 S(....s....Enter.a.new.event.in.
07a0 74 68 65 20 71 75 65 75 65 20 61 74 20 61 6e 20 61 62 73 6f 6c 75 74 65 20 74 69 6d 65 2e 0a 0a the.queue.at.an.absolute.time...
07c0 20 20 20 20 20 20 20 20 52 65 74 75 72 6e 73 20 61 6e 20 49 44 20 66 6f 72 20 74 68 65 20 65 76 ........Returns.an.ID.for.the.ev
07e0 65 6e 74 20 77 68 69 63 68 20 63 61 6e 20 62 65 20 75 73 65 64 20 74 6f 20 72 65 6d 6f 76 65 20 ent.which.can.be.used.to.remove.
0800 69 74 2c 0a 20 20 20 20 20 20 20 20 69 66 20 6e 65 63 65 73 73 61 72 79 2e 0a 0a 20 20 20 20 20 it,.........if.necessary........
0820 20 20 20 28 04 00 00 00 52 02 00 00 00 74 05 00 00 00 68 65 61 70 71 74 08 00 00 00 68 65 61 70 ...(....R....t....heapqt....heap
0840 70 75 73 68 52 03 00 00 00 28 06 00 00 00 52 06 00 00 00 74 04 00 00 00 74 69 6d 65 74 08 00 00 pushR....(....R....t....timet...
0860 00 70 72 69 6f 72 69 74 79 74 06 00 00 00 61 63 74 69 6f 6e 74 08 00 00 00 61 72 67 75 6d 65 6e .priorityt....actiont....argumen
0880 74 74 05 00 00 00 65 76 65 6e 74 28 00 00 00 00 28 00 00 00 00 73 4c 00 00 00 2f 62 75 69 6c 64 tt....event(....(....sL.../build
08a0 62 6f 74 2f 74 6d 70 2f 62 75 69 6c 64 68 6f 73 74 2f 69 6e 73 74 61 6c 6c 2f 70 72 65 62 75 69 bot/tmp/buildhost/install/prebui
08c0 6c 74 2f 6c 69 6e 75 78 2d 78 38 36 5f 36 34 2f 6c 69 62 2f 70 79 74 68 6f 6e 32 2e 37 2f 73 63 lt/linux-x86_64/lib/python2.7/sc
08e0 68 65 64 2e 70 79 74 08 00 00 00 65 6e 74 65 72 61 62 73 2e 00 00 00 73 06 00 00 00 00 07 15 01 hed.pyt....enterabs....s........
0900 13 01 63 05 00 00 00 06 00 00 00 05 00 00 00 43 00 00 00 73 26 00 00 00 7c 00 00 6a 00 00 83 00 ..c............C...s&...|..j....
0920 00 7c 01 00 17 7d 05 00 7c 00 00 6a 01 00 7c 05 00 7c 02 00 7c 03 00 7c 04 00 83 04 00 53 28 01 .|...}..|..j..|..|..|..|.....S(.
0940 00 00 00 73 7b 00 00 00 41 20 76 61 72 69 61 6e 74 20 74 68 61 74 20 73 70 65 63 69 66 69 65 73 ...s{...A.variant.that.specifies
0960 20 74 68 65 20 74 69 6d 65 20 61 73 20 61 20 72 65 6c 61 74 69 76 65 20 74 69 6d 65 2e 0a 0a 20 .the.time.as.a.relative.time....
0980 20 20 20 20 20 20 20 54 68 69 73 20 69 73 20 61 63 74 75 61 6c 6c 79 20 74 68 65 20 6d 6f 72 65 .......This.is.actually.the.more
09a0 20 63 6f 6d 6d 6f 6e 6c 79 20 75 73 65 64 20 69 6e 74 65 72 66 61 63 65 2e 0a 0a 20 20 20 20 20 .commonly.used.interface........
09c0 20 20 20 28 02 00 00 00 52 04 00 00 00 52 0f 00 00 00 28 06 00 00 00 52 06 00 00 00 74 05 00 00 ...(....R....R....(....R....t...
09e0 00 64 65 6c 61 79 52 0b 00 00 00 52 0c 00 00 00 52 0d 00 00 00 52 0a 00 00 00 28 00 00 00 00 28 .delayR....R....R....R....(....(
0a00 00 00 00 00 73 4c 00 00 00 2f 62 75 69 6c 64 62 6f 74 2f 74 6d 70 2f 62 75 69 6c 64 68 6f 73 74 ....sL.../buildbot/tmp/buildhost
0a20 2f 69 6e 73 74 61 6c 6c 2f 70 72 65 62 75 69 6c 74 2f 6c 69 6e 75 78 2d 78 38 36 5f 36 34 2f 6c /install/prebuilt/linux-x86_64/l
0a40 69 62 2f 70 79 74 68 6f 6e 32 2e 37 2f 73 63 68 65 64 2e 70 79 74 05 00 00 00 65 6e 74 65 72 39 ib/python2.7/sched.pyt....enter9
0a60 00 00 00 73 04 00 00 00 00 06 10 01 63 02 00 00 00 02 00 00 00 02 00 00 00 43 00 00 00 73 24 00 ...s........c............C...s$.
0a80 00 00 7c 00 00 6a 00 00 6a 01 00 7c 01 00 83 01 00 01 74 02 00 6a 03 00 7c 00 00 6a 00 00 83 01 ..|..j..j..|......t..j..|..j....
0aa0 00 01 64 01 00 53 28 02 00 00 00 73 aa 00 00 00 52 65 6d 6f 76 65 20 61 6e 20 65 76 65 6e 74 20 ..d..S(....s....Remove.an.event.
0ac0 66 72 6f 6d 20 74 68 65 20 71 75 65 75 65 2e 0a 0a 20 20 20 20 20 20 20 20 54 68 69 73 20 6d 75 from.the.queue...........This.mu
0ae0 73 74 20 62 65 20 70 72 65 73 65 6e 74 65 64 20 74 68 65 20 49 44 20 61 73 20 72 65 74 75 72 6e st.be.presented.the.ID.as.return
0b00 65 64 20 62 79 20 65 6e 74 65 72 28 29 2e 0a 20 20 20 20 20 20 20 20 49 66 20 74 68 65 20 65 76 ed.by.enter()..........If.the.ev
0b20 65 6e 74 20 69 73 20 6e 6f 74 20 69 6e 20 74 68 65 20 71 75 65 75 65 2c 20 74 68 69 73 20 72 61 ent.is.not.in.the.queue,.this.ra
0b40 69 73 65 73 20 56 61 6c 75 65 45 72 72 6f 72 2e 0a 0a 20 20 20 20 20 20 20 20 4e 28 04 00 00 00 ises.ValueError...........N(....
0b60 52 03 00 00 00 74 06 00 00 00 72 65 6d 6f 76 65 52 08 00 00 00 74 07 00 00 00 68 65 61 70 69 66 R....t....removeR....t....heapif
0b80 79 28 02 00 00 00 52 06 00 00 00 52 0e 00 00 00 28 00 00 00 00 28 00 00 00 00 73 4c 00 00 00 2f y(....R....R....(....(....sL.../
0ba0 62 75 69 6c 64 62 6f 74 2f 74 6d 70 2f 62 75 69 6c 64 68 6f 73 74 2f 69 6e 73 74 61 6c 6c 2f 70 buildbot/tmp/buildhost/install/p
0bc0 72 65 62 75 69 6c 74 2f 6c 69 6e 75 78 2d 78 38 36 5f 36 34 2f 6c 69 62 2f 70 79 74 68 6f 6e 32 rebuilt/linux-x86_64/lib/python2
0be0 2e 37 2f 73 63 68 65 64 2e 70 79 74 06 00 00 00 63 61 6e 63 65 6c 42 00 00 00 73 04 00 00 00 00 .7/sched.pyt....cancelB...s.....
0c00 07 10 01 63 01 00 00 00 01 00 00 00 01 00 00 00 43 00 00 00 73 08 00 00 00 7c 00 00 6a 00 00 0c ...c............C...s....|..j...
0c20 53 28 01 00 00 00 73 21 00 00 00 43 68 65 63 6b 20 77 68 65 74 68 65 72 20 74 68 65 20 71 75 65 S(....s!...Check.whether.the.que
0c40 75 65 20 69 73 20 65 6d 70 74 79 2e 28 01 00 00 00 52 03 00 00 00 28 01 00 00 00 52 06 00 00 00 ue.is.empty.(....R....(....R....
0c60 28 00 00 00 00 28 00 00 00 00 73 4c 00 00 00 2f 62 75 69 6c 64 62 6f 74 2f 74 6d 70 2f 62 75 69 (....(....sL.../buildbot/tmp/bui
0c80 6c 64 68 6f 73 74 2f 69 6e 73 74 61 6c 6c 2f 70 72 65 62 75 69 6c 74 2f 6c 69 6e 75 78 2d 78 38 ldhost/install/prebuilt/linux-x8
0ca0 36 5f 36 34 2f 6c 69 62 2f 70 79 74 68 6f 6e 32 2e 37 2f 73 63 68 65 64 2e 70 79 74 05 00 00 00 6_64/lib/python2.7/sched.pyt....
0cc0 65 6d 70 74 79 4c 00 00 00 73 02 00 00 00 00 02 63 01 00 00 00 0c 00 00 00 05 00 00 00 43 00 00 emptyL...s......c............C..
0ce0 00 73 b4 00 00 00 7c 00 00 6a 00 00 7d 01 00 7c 00 00 6a 01 00 7d 02 00 7c 00 00 6a 02 00 7d 03 .s....|..j..}..|..j..}..|..j..}.
0d00 00 74 03 00 6a 04 00 7d 04 00 78 89 00 7c 01 00 72 af 00 7c 01 00 64 01 00 19 04 5c 04 00 7d 05 .t..j..}..x..|..r..|..d....\..}.
0d20 00 7d 06 00 7d 07 00 7d 08 00 7d 09 00 7c 03 00 83 00 00 7d 0a 00 7c 0a 00 7c 05 00 6b 00 00 72 .}..}..}..}..|.....}..|..|..k..r
0d40 6d 00 7c 02 00 7c 05 00 7c 0a 00 18 83 01 00 01 71 27 00 7c 04 00 7c 01 00 83 01 00 7d 0b 00 7c m.|..|..|.......q'.|..|.....}..|
0d60 0b 00 7c 09 00 6b 08 00 72 9c 00 7c 07 00 7c 08 00 8c 00 00 01 7c 02 00 64 01 00 83 01 00 01 71 ..|..k..r..|..|......|..d......q
0d80 27 00 74 03 00 6a 05 00 7c 01 00 7c 0b 00 83 02 00 01 71 27 00 57 64 02 00 53 28 03 00 00 00 73 '.t..j..|..|......q'.Wd..S(....s
0da0 66 03 00 00 45 78 65 63 75 74 65 20 65 76 65 6e 74 73 20 75 6e 74 69 6c 20 74 68 65 20 71 75 65 f...Execute.events.until.the.que
0dc0 75 65 20 69 73 20 65 6d 70 74 79 2e 0a 0a 20 20 20 20 20 20 20 20 57 68 65 6e 20 74 68 65 72 65 ue.is.empty...........When.there
0de0 20 69 73 20 61 20 70 6f 73 69 74 69 76 65 20 64 65 6c 61 79 20 75 6e 74 69 6c 20 74 68 65 20 66 .is.a.positive.delay.until.the.f
0e00 69 72 73 74 20 65 76 65 6e 74 2c 20 74 68 65 0a 20 20 20 20 20 20 20 20 64 65 6c 61 79 20 66 75 irst.event,.the.........delay.fu
0e20 6e 63 74 69 6f 6e 20 69 73 20 63 61 6c 6c 65 64 20 61 6e 64 20 74 68 65 20 65 76 65 6e 74 20 69 nction.is.called.and.the.event.i
0e40 73 20 6c 65 66 74 20 69 6e 20 74 68 65 20 71 75 65 75 65 3b 0a 20 20 20 20 20 20 20 20 6f 74 68 s.left.in.the.queue;.........oth
0e60 65 72 77 69 73 65 2c 20 74 68 65 20 65 76 65 6e 74 20 69 73 20 72 65 6d 6f 76 65 64 20 66 72 6f erwise,.the.event.is.removed.fro
0e80 6d 20 74 68 65 20 71 75 65 75 65 20 61 6e 64 20 65 78 65 63 75 74 65 64 0a 20 20 20 20 20 20 20 m.the.queue.and.executed........
0ea0 20 28 69 74 73 20 61 63 74 69 6f 6e 20 66 75 6e 63 74 69 6f 6e 20 69 73 20 63 61 6c 6c 65 64 2c .(its.action.function.is.called,
0ec0 20 70 61 73 73 69 6e 67 20 69 74 20 74 68 65 20 61 72 67 75 6d 65 6e 74 29 2e 20 20 49 66 0a 20 .passing.it.the.argument)...If..
0ee0 20 20 20 20 20 20 20 74 68 65 20 64 65 6c 61 79 20 66 75 6e 63 74 69 6f 6e 20 72 65 74 75 72 6e .......the.delay.function.return
0f00 73 20 70 72 65 6d 61 74 75 72 65 6c 79 2c 20 69 74 20 69 73 20 73 69 6d 70 6c 79 0a 20 20 20 20 s.prematurely,.it.is.simply.....
0f20 20 20 20 20 72 65 73 74 61 72 74 65 64 2e 0a 0a 20 20 20 20 20 20 20 20 49 74 20 69 73 20 6c 65 ....restarted...........It.is.le
0f40 67 61 6c 20 66 6f 72 20 62 6f 74 68 20 74 68 65 20 64 65 6c 61 79 20 66 75 6e 63 74 69 6f 6e 20 gal.for.both.the.delay.function.
0f60 61 6e 64 20 74 68 65 20 61 63 74 69 6f 6e 0a 20 20 20 20 20 20 20 20 66 75 6e 63 74 69 6f 6e 20 and.the.action.........function.
0f80 74 6f 20 6d 6f 64 69 66 79 20 74 68 65 20 71 75 65 75 65 20 6f 72 20 74 6f 20 72 61 69 73 65 20 to.modify.the.queue.or.to.raise.
0fa0 61 6e 20 65 78 63 65 70 74 69 6f 6e 3b 0a 20 20 20 20 20 20 20 20 65 78 63 65 70 74 69 6f 6e 73 an.exception;.........exceptions
0fc0 20 61 72 65 20 6e 6f 74 20 63 61 75 67 68 74 20 62 75 74 20 74 68 65 20 73 63 68 65 64 75 6c 65 .are.not.caught.but.the.schedule
0fe0 72 27 73 20 73 74 61 74 65 20 72 65 6d 61 69 6e 73 0a 20 20 20 20 20 20 20 20 77 65 6c 6c 2d 64 r's.state.remains.........well-d
1000 65 66 69 6e 65 64 20 73 6f 20 72 75 6e 28 29 20 6d 61 79 20 62 65 20 63 61 6c 6c 65 64 20 61 67 efined.so.run().may.be.called.ag
1020 61 69 6e 2e 0a 0a 20 20 20 20 20 20 20 20 41 20 71 75 65 73 74 69 6f 6e 61 62 6c 65 20 68 61 63 ain...........A.questionable.hac
1040 6b 20 69 73 20 61 64 64 65 64 20 74 6f 20 61 6c 6c 6f 77 20 6f 74 68 65 72 20 74 68 72 65 61 64 k.is.added.to.allow.other.thread
1060 73 20 74 6f 20 72 75 6e 3a 0a 20 20 20 20 20 20 20 20 6a 75 73 74 20 61 66 74 65 72 20 61 6e 20 s.to.run:.........just.after.an.
1080 65 76 65 6e 74 20 69 73 20 65 78 65 63 75 74 65 64 2c 20 61 20 64 65 6c 61 79 20 6f 66 20 30 20 event.is.executed,.a.delay.of.0.
10a0 69 73 20 65 78 65 63 75 74 65 64 2c 20 74 6f 0a 20 20 20 20 20 20 20 20 61 76 6f 69 64 20 6d 6f is.executed,.to.........avoid.mo
10c0 6e 6f 70 6f 6c 69 7a 69 6e 67 20 74 68 65 20 43 50 55 20 77 68 65 6e 20 6f 74 68 65 72 20 74 68 nopolizing.the.CPU.when.other.th
10e0 72 65 61 64 73 20 61 72 65 20 61 6c 73 6f 0a 20 20 20 20 20 20 20 20 72 75 6e 6e 61 62 6c 65 2e reads.are.also.........runnable.
1100 0a 0a 20 20 20 20 20 20 20 20 69 00 00 00 00 4e 28 06 00 00 00 52 03 00 00 00 52 05 00 00 00 52 ..........i....N(....R....R....R
1120 04 00 00 00 52 08 00 00 00 74 07 00 00 00 68 65 61 70 70 6f 70 52 09 00 00 00 28 0c 00 00 00 52 ....R....t....heappopR....(....R
1140 06 00 00 00 74 01 00 00 00 71 52 05 00 00 00 52 04 00 00 00 74 03 00 00 00 70 6f 70 52 0a 00 00 ....t....qR....R....t....popR...
1160 00 52 0b 00 00 00 52 0c 00 00 00 52 0d 00 00 00 74 0d 00 00 00 63 68 65 63 6b 65 64 5f 65 76 65 .R....R....R....t....checked_eve
1180 6e 74 74 03 00 00 00 6e 6f 77 52 0e 00 00 00 28 00 00 00 00 28 00 00 00 00 73 4c 00 00 00 2f 62 ntt....nowR....(....(....sL.../b
11a0 75 69 6c 64 62 6f 74 2f 74 6d 70 2f 62 75 69 6c 64 68 6f 73 74 2f 69 6e 73 74 61 6c 6c 2f 70 72 uildbot/tmp/buildhost/install/pr
11c0 65 62 75 69 6c 74 2f 6c 69 6e 75 78 2d 78 38 36 5f 36 34 2f 6c 69 62 2f 70 79 74 68 6f 6e 32 2e ebuilt/linux-x86_64/lib/python2.
11e0 37 2f 73 63 68 65 64 2e 70 79 74 03 00 00 00 72 75 6e 50 00 00 00 73 1c 00 00 00 00 17 09 01 09 7/sched.pyt....runP...s.........
1200 01 09 01 09 01 09 01 1a 01 09 01 0c 01 11 02 0c 03 0c 01 0a 01 0d 02 63 01 00 00 00 02 00 00 00 .......................c........
1220 05 00 00 00 43 00 00 00 73 27 00 00 00 7c 00 00 6a 00 00 1e 7d 01 00 74 01 00 74 02 00 6a 03 00 ....C...s'...|..j...}..t..t..j..
1240 7c 01 00 67 01 00 74 04 00 7c 01 00 83 01 00 14 83 02 00 53 28 01 00 00 00 73 8d 00 00 00 41 6e |..g..t..|.........S(....s....An
1260 20 6f 72 64 65 72 65 64 20 6c 69 73 74 20 6f 66 20 75 70 63 6f 6d 69 6e 67 20 65 76 65 6e 74 73 .ordered.list.of.upcoming.events
1280 2e 0a 0a 20 20 20 20 20 20 20 20 45 76 65 6e 74 73 20 61 72 65 20 6e 61 6d 65 64 20 74 75 70 6c ...........Events.are.named.tupl
12a0 65 73 20 77 69 74 68 20 66 69 65 6c 64 73 20 66 6f 72 3a 0a 20 20 20 20 20 20 20 20 20 20 20 20 es.with.fields.for:.............
12c0 74 69 6d 65 2c 20 70 72 69 6f 72 69 74 79 2c 20 61 63 74 69 6f 6e 2c 20 61 72 67 75 6d 65 6e 74 time,.priority,.action,.argument
12e0 73 0a 0a 20 20 20 20 20 20 20 20 28 05 00 00 00 52 03 00 00 00 74 03 00 00 00 6d 61 70 52 08 00 s..........(....R....t....mapR..
1300 00 00 52 16 00 00 00 74 03 00 00 00 6c 65 6e 28 02 00 00 00 52 06 00 00 00 74 06 00 00 00 65 76 ..R....t....len(....R....t....ev
1320 65 6e 74 73 28 00 00 00 00 28 00 00 00 00 73 4c 00 00 00 2f 62 75 69 6c 64 62 6f 74 2f 74 6d 70 ents(....(....sL.../buildbot/tmp
1340 2f 62 75 69 6c 64 68 6f 73 74 2f 69 6e 73 74 61 6c 6c 2f 70 72 65 62 75 69 6c 74 2f 6c 69 6e 75 /buildhost/install/prebuilt/linu
1360 78 2d 78 38 36 5f 36 34 2f 6c 69 62 2f 70 79 74 68 6f 6e 32 2e 37 2f 73 63 68 65 64 2e 70 79 74 x-x86_64/lib/python2.7/sched.pyt
1380 05 00 00 00 71 75 65 75 65 7a 00 00 00 73 04 00 00 00 00 0b 0a 01 28 0a 00 00 00 74 08 00 00 00 ....queuez...s........(....t....
13a0 5f 5f 6e 61 6d 65 5f 5f 74 0a 00 00 00 5f 5f 6d 6f 64 75 6c 65 5f 5f 52 07 00 00 00 52 0f 00 00 __name__t....__module__R....R...
13c0 00 52 11 00 00 00 52 14 00 00 00 52 15 00 00 00 52 1b 00 00 00 74 08 00 00 00 70 72 6f 70 65 72 .R....R....R....R....t....proper
13e0 74 79 52 1f 00 00 00 28 00 00 00 00 28 00 00 00 00 28 00 00 00 00 73 4c 00 00 00 2f 62 75 69 6c tyR....(....(....(....sL.../buil
1400 64 62 6f 74 2f 74 6d 70 2f 62 75 69 6c 64 68 6f 73 74 2f 69 6e 73 74 61 6c 6c 2f 70 72 65 62 75 dbot/tmp/buildhost/install/prebu
1420 69 6c 74 2f 6c 69 6e 75 78 2d 78 38 36 5f 36 34 2f 6c 69 62 2f 70 79 74 68 6f 6e 32 2e 37 2f 73 ilt/linux-x86_64/lib/python2.7/s
1440 63 68 65 64 2e 70 79 52 01 00 00 00 26 00 00 00 73 0e 00 00 00 06 01 09 07 09 0b 09 09 09 0a 09 ched.pyR....&...s...............
1460 04 09 2a 28 00 00 00 00 28 07 00 00 00 74 07 00 00 00 5f 5f 64 6f 63 5f 5f 52 08 00 00 00 74 0b ..*(....(....t....__doc__R....t.
1480 00 00 00 63 6f 6c 6c 65 63 74 69 6f 6e 73 52 00 00 00 00 74 07 00 00 00 5f 5f 61 6c 6c 5f 5f 52 ...collectionsR....t....__all__R
14a0 02 00 00 00 52 01 00 00 00 28 00 00 00 00 28 00 00 00 00 28 00 00 00 00 73 4c 00 00 00 2f 62 75 ....R....(....(....(....sL.../bu
14c0 69 6c 64 62 6f 74 2f 74 6d 70 2f 62 75 69 6c 64 68 6f 73 74 2f 69 6e 73 74 61 6c 6c 2f 70 72 65 ildbot/tmp/buildhost/install/pre
14e0 62 75 69 6c 74 2f 6c 69 6e 75 78 2d 78 38 36 5f 36 34 2f 6c 69 62 2f 70 79 74 68 6f 6e 32 2e 37 built/linux-x86_64/lib/python2.7
1500 2f 73 63 68 65 64 2e 70 79 74 08 00 00 00 3c 6d 6f 64 75 6c 65 3e 18 00 00 00 73 0a 00 00 00 06 /sched.pyt....<module>....s.....
1520 07 0c 01 10 02 09 02 0f 02 .........