tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
M\¬Qc@s dZddlZyddlZWnek
rBeje=‚nXddlZddlm    Z
ddl m Z m ZddlmZdddd    d
d d d dddddddddgZejZejZejZejZ[ejddeddddƒeZdefd„ƒYZ e!a"e!a#d„Z$d „Z%eZ&d!„Z'd"e fd#„ƒYZ(d$„Z)d%e fd&„ƒYZ*d'„Z+d(e fd)„ƒYZ,d*„Z-d+e,fd,„ƒYZ.d-„Z/d.e fd/„ƒYZ0d0a1d1d2„Z2eƒa3iZ4iZ5de fd3„ƒYZ6d4„Z7d5e6fd6„ƒYZ8d7e6fd8„ƒYZ9d9„Z:d:e6fd;„ƒYZ;d<„Z<e<Z=d=„Z>e>Z?d>„Z@d?„ZAdd@lmBZBe9ƒjCZDyddAlmEZFWn!ek
róddBlGmFZFnXdC„ZHdD„ZIedEkreIƒndS(Fs;Thread module emulating a subset of Java's threading model.iÿÿÿÿN(tdeque(ttimetsleep(t
format_exct activeCountt active_countt    Conditiont currentThreadtcurrent_threadt    enumeratetEventtLocktRLockt    SemaphoretBoundedSemaphoretThreadtTimert
setprofiletsettracetlocalt
stack_sizetignoretcategorytmodulet    threadingtmessages sys.exc_cleart_VerbosecBseZdd„Zd„ZRS(cCs"|dkrt}n||_dS(N(tNonet_VERBOSEt_Verbose__verbose(tselftverbose((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyt__init__:s     cGsr|jrn||}tƒ}yt|j}Wntk
rJd|}nXd||f}tjj|ƒndS(Ns<OS thread %d>s%s: %s
(Rt
_get_identt_activetnametKeyErrort_syststderrtwrite(RtformattargstidentR#((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyt_note?s    
     N(t__name__t
__module__RR R+(((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyR8s cCs
|adS(s¸Set a profile function for all threads started from the threading module.
 
    The func will be passed to sys.setprofile() for each thread, before its
    run() method is called.
 
    N(t _profile_hook(tfunc((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyRYscCs
|adS(s´Set a trace function for all threads started from the threading module.
 
    The func will be passed to sys.settrace() for each thread, before its run()
    method is called.
 
    N(t _trace_hook(R/((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyRcscOs t||ŽS(s2Factory function that returns a new reentrant lock.
 
    A reentrant lock must be released by the thread that acquired it. Once a
    thread has acquired a reentrant lock, the same thread may acquire it again
    without blocking; the thread must release it once for each time it has
    acquired it.
 
    (t_RLock(R)tkwargs((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyR qs    R1cBsbeZdZd
d„Zd„Zdd„ZeZd„Zd„Z    d„Z
d„Z d    „Z RS( sA reentrant lock must be released by the thread that acquired it. Once a
       thread has acquired a reentrant lock, the same thread may acquire it
       again without blocking; the thread must release it once for each time it
       has acquired it.
    cCs2tj||ƒtƒ|_d|_d|_dS(Ni(RR t_allocate_lockt _RLock__blockRt _RLock__ownert _RLock__count(RR((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyR ƒs     cCsH|j}yt|j}Wntk
r-nXd|jj||jfS(Ns<%s owner=%r count=%d>(R5R"R#R$t    __class__R,R6(Rtowner((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyt__repr__‰s     icCs–tƒ}|j|kr?|jd|_|jd||ƒdS|jj|ƒ}|r||_d|_|jd||ƒn|jd||ƒ|S(sîAcquire a lock, blocking or non-blocking.
 
        When invoked without arguments: if this thread already owns the lock,
        increment the recursion level by one, and return immediately. Otherwise,
        if another thread owns the lock, block until the lock is unlocked. Once
        the lock is unlocked (not owned by any thread), then grab ownership, set
        the recursion level to one, and return. If more than one thread is
        blocked waiting until the lock is unlocked, only one at a time will be
        able to grab ownership of the lock. There is no return value in this
        case.
 
        When invoked with the blocking argument set to true, do the same thing
        as when called without arguments, and return true.
 
        When invoked with the blocking argument set to false, do not block. If a
        call without an argument would block, return false immediately;
        otherwise, do the same thing as when called without arguments, and
        return true.
 
        is!%s.acquire(%s): recursive successs%s.acquire(%s): initial successs%s.acquire(%s): failure(R!R5R6R+R4tacquire(Rtblockingtmetrc((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyR:’s            cCsx|jtƒkr!tdƒ‚n|jd|_}|sdd|_|jjƒ|jd|ƒn|jd|ƒdS(smRelease a lock, decrementing the recursion level.
 
        If after the decrement it is zero, reset the lock to unlocked (not owned
        by any thread), and if any other threads are blocked waiting for the
        lock to become unlocked, allow exactly one of them to proceed. If after
        the decrement the recursion level is still nonzero, the lock remains
        locked and owned by the calling thread.
 
        Only call this method when the calling thread owns the lock. A
        RuntimeError is raised if this method is called when the lock is
        unlocked.
 
        There is no return value.
 
        scannot release un-acquired lockis%s.release(): final releases%s.release(): non-final releaseN(R5R!t RuntimeErrorR6RR4treleaseR+(Rtcount((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyR?ºs     cCs|jƒdS(N(R?(Rtttvttb((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyt__exit__ÖscCs?|\}}|jjƒ||_||_|jd|ƒdS(Ns%s._acquire_restore()(R4R:R6R5R+(Rt count_ownerR@R8((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyt_acquire_restoreÛs
          cCsK|jd|ƒ|j}d|_|j}d|_|jjƒ||fS(Ns%s._release_save()i(R+R6R5RR4R?(RR@R8((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyt _release_saveãs                 cCs|jtƒkS(N(R5R!(R((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyt    _is_ownedísN( R,R-t__doc__RR R9R:t    __enter__R?RDRFRGRH(((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyR1|s          &                
cOs t||ŽS(s}Factory function that returns a new condition variable object.
 
    A condition variable allows one or more threads to wait until they are
    notified by another thread.
 
    If the lock argument is given and not None, it must be a Lock or RLock
    object, and it is used as the underlying lock. Otherwise, a new RLock object
    is created and used as the underlying lock.
 
    (t
_Condition(R)R2((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyRñs RKcBszeZdZd d d„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d d„Z d    d
„Z d „Z e ZRS( slCondition variables allow one or more threads to wait until they are
       notified by another thread.
    cCsÂtj||ƒ|dkr(tƒ}n||_|j|_|j|_y|j|_Wntk
rlnXy|j    |_    Wntk
rnXy|j
|_
Wntk
r´nXg|_ dS(N( RR RR t_Condition__lockR:R?RGtAttributeErrorRFRHt_Condition__waiters(RtlockR((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyR s&           cCs |jjƒS(N(RLRJ(R((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyRJscGs|jj|ŒS(N(RLRD(RR)((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyRDscCsd|jt|jƒfS(Ns<Condition(%s, %d)>(RLtlenRN(R((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyR9"scCs|jjƒdS(N(RLR?(R((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyRG%scCs|jjƒdS(N(RLR:(Rtx((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyRF(scCs+|jjdƒr#|jjƒtStSdS(Ni(RLR:R?tFalsetTrue(R((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyRH+s cCsY|jƒstdƒ‚ntƒ}|jƒ|jj|ƒ|jƒ}zú|d    krv|jƒ|jd|ƒnÍt    ƒ|}d}x`t
rë|jdƒ}|r«Pn|t    ƒ}|dkrÈPnt |d|dƒ}t |ƒqŒW|s0|jd||ƒy|jj |ƒWqCtk
r,qCXn|jd||ƒWd    |j|ƒXd    S(
sjWait until notified or until a timeout occurs.
 
        If the calling thread has not acquired the lock when this method is
        called, a RuntimeError is raised.
 
        This method releases the underlying lock, and then blocks until it is
        awakened by a notify() or notifyAll() call for the same condition
        variable in another thread, or until the optional timeout occurs. Once
        awakened or timed out, it re-acquires the lock and returns.
 
        When the timeout argument is present and not None, it should be a
        floating point number specifying a timeout for the operation in seconds
        (or fractions thereof).
 
        When the underlying lock is an RLock, it is not released using its
        release() method, since this may not actually unlock the lock when it
        was acquired multiple times recursively. Instead, an internal interface
        of the RLock class is used, which really unlocks it even when it has
        been recursively acquired several times. Another internal interface is
        then used to restore the recursion level when the lock is reacquired.
 
        scannot wait on un-acquired locks%s.wait(): got itgü©ñÒMb@?iigš™™™™™©?s%s.wait(%s): timed outs%s.wait(%s): got itN(RHR>R3R:RNtappendRGRR+t_timeRStmint_sleeptremovet
ValueErrorRF(Rttimeouttwaitert saved_statetendtimetdelaytgotitt    remaining((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pytwait4s:     
 
        icCs´|jƒstdƒ‚n|j}|| }|sH|jd|ƒdS|jd|||dkridpldƒx=|D]5}|jƒy|j|ƒWqwtk
r«qwXqwWdS(sKWake up one or more threads waiting on this condition, if any.
 
        If the calling thread has not acquired the lock when this method is
        called, a RuntimeError is raised.
 
        This method wakes up at most n of the threads waiting for the condition
        variable; it is a no-op if no threads are waiting.
 
        s!cannot notify on un-acquired locks%s.notify(): no waitersNs"%s.notify(): notifying %d waiter%sitst(RHR>RNR+R?RXRY(RtnRNtwaitersR[((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pytnotifyts
    
 
 cCs|jt|jƒƒdS(s¯Wake up all threads waiting on this condition.
 
        If the calling thread has not acquired the lock when this method
        is called, a RuntimeError is raised.
 
        N(RfRPRN(R((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyt    notifyAllsN(R,R-RIRR RJRDR9RGRFRHRaRfRgt
notify_all(((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyRKþs                             @         cOs t||ŽS(sOA factory function that returns a new semaphore.
 
    Semaphores manage a counter representing the number of release() calls minus
    the number of acquire() calls, plus an initial value. The acquire() method
    blocks if necessary until it can return without making the counter
    negative. If not given, value defaults to 1.
 
    (t
_Semaphore(R)R2((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyR ›s    RicBsAeZdZddd„Zdd„ZeZd„Zd„ZRS(s"Semaphores manage a counter representing the number of release() calls
       minus the number of acquire() calls, plus an initial value. The acquire()
       method blocks if necessary until it can return without making the counter
       negative. If not given, value defaults to 1.
 
    icCsJ|dkrtdƒ‚ntj||ƒttƒƒ|_||_dS(Nis$semaphore initial value must be >= 0(RYRR RR t_Semaphore__condt_Semaphore__value(RtvalueR((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyR °s
 c    CsŒt}|jwxo|jdkrU|s,Pn|jd|||jƒ|jjƒqW|jd|_|jd||jƒt}WdQX|S(sAcquire a semaphore, decrementing the internal counter by one.
 
        When invoked without arguments: if the internal counter is larger than
        zero on entry, decrement it by one and return immediately. If it is zero
        on entry, block, waiting until some other thread has called release() to
        make it larger than zero. This is done with proper interlocking so that
        if multiple acquire() calls are blocked, release() will wake exactly one
        of them up. The implementation may pick one at random, so the order in
        which blocked threads are awakened should not be relied on. There is no
        return value in this case.
 
        When invoked with blocking set to true, do the same thing as when called
        without arguments, and return true.
 
        When invoked with blocking set to false, do not block. If a call without
        an argument would block, return false immediately; otherwise, do the
        same thing as when called without arguments, and return true.
 
        is)%s.acquire(%s): blocked waiting, value=%sis%s.acquire: success, value=%sN(RRRjRkR+RaRS(RR;R=((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyR:·s
          cCsG|j8|jd|_|jd||jƒ|jjƒWdQXdS(s×Release a semaphore, incrementing the internal counter by one.
 
        When the counter is zero on entry and another thread is waiting for it
        to become larger than zero again, wake up that thread.
 
        is%s.release: success, value=%sN(RjRkR+Rf(R((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyR?Þs
 
     cCs|jƒdS(N(R?(RRARBRC((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyRDìsN(    R,R-RIRR R:RJR?RD(((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyRi¦s  %    cOs t||ŽS(sÂA factory function that returns a new bounded semaphore.
 
    A bounded semaphore checks to make sure its current value doesn't exceed its
    initial value. If it does, ValueError is raised. In most situations
    semaphores are used to guard resources with limited capacity.
 
    If the semaphore is released too many times it's a sign of a bug. If not
    given, value defaults to 1.
 
    Like regular semaphores, bounded semaphores manage a counter representing
    the number of release() calls minus the number of acquire() calls, plus an
    initial value. The acquire() method blocks if necessary until it can return
    without making the counter negative. If not given, value defaults to 1.
 
    (t_BoundedSemaphore(R)R2((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyRðsRmcBs&eZdZddd„Zd„ZRS(sáA bounded semaphore checks to make sure its current value doesn't exceed
       its initial value. If it does, ValueError is raised. In most situations
       semaphores are used to guard resources with limited capacity.
    icCs tj|||ƒ||_dS(N(RiR t_initial_value(RRlR((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyR scCs.|j|jkr!tdƒ‚ntj|ƒS(s6Release a semaphore, incrementing the internal counter by one.
 
        When the counter is zero on entry and another thread is waiting for it
        to become larger than zero again, wake up that thread.
 
        If the number of releases exceeds the number of acquires,
        raise a ValueError.
 
        s!Semaphore released too many times(RkRnRYRiR?(R((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyR? s
N(R,R-RIRR R?(((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyRmscOs t||ŽS(sßA factory function that returns a new event.
 
    Events manage a flag that can be set to true with the set() method and reset
    to false with the clear() method. The wait() method blocks until the flag is
    true.
 
    (t_Event(R)R2((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyR
sRocBsPeZdZdd„Zd„Zd„ZeZd„Zd„Z    dd„Z
RS(sêA factory function that returns a new event object. An event manages a
       flag that can be set to true with the set() method and reset to false
       with the clear() method. The wait() method blocks until the flag is true.
 
    cCs/tj||ƒttƒƒ|_t|_dS(N(RR RR t _Event__condRRt _Event__flag(RR((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyR .scCs|jjƒdS(N(RpR (R((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyt_reset_internal_locks3scCs|jS(s5Return true if and only if the internal flag is true.(Rq(R((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pytisSet7scCs<|jjƒzt|_|jjƒWd|jjƒXdS(s½Set the internal flag to true.
 
        All threads waiting for the flag to become true are awakened. Threads
        that call wait() once the flag is true will not block at all.
 
        N(RpR:RSRqRhR?(R((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pytset=s
     cCs/|jjƒz t|_Wd|jjƒXdS(sªReset the internal flag to false.
 
        Subsequently, threads calling wait() will block until set() is called to
        set the internal flag to true again.
 
        N(RpR:RRRqR?(R((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pytclearKs  cCsI|jjƒz'|js,|jj|ƒn|jSWd|jjƒXdS(sHBlock until the internal flag is true.
 
        If the internal flag is true on entry, return immediately. Otherwise,
        block until another thread calls set() to set the flag to true, or until
        the optional timeout occurs.
 
        When the timeout argument is present and not None, it should be a
        floating point number specifying a timeout for the operation in seconds
        (or fractions thereof).
 
        This method returns the internal flag on exit, so it will always return
        True except if a timeout is given and the operation times out.
 
        N(RpR:RqRaR?(RRZ((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyRaXs       N( R,R-RIRR RrRstis_setRtRuRa(((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyRo%s                  is    Thread-%dcCstda|tS(Ni(t_counter(ttemplate((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyt_newnameqs
cBs:eZdZeZejZejZ    ddddddd„Z d„Z e d„ƒZd„Zd„Zd„Zd„Zd„Zd    „Zd
„Zd „Zd „Zdd „Ze d„ƒZejd„ƒZe d„ƒZd„ZeZe d„ƒZejd„ƒZd„Zd„Z d„Z!d„Z"RS(sqA class that represents a thread of control.
 
    This class can be safely subclassed in a limited fashion.
 
    cCsÈ|dkstdƒ‚tj||ƒ|dkr=i}n||_t|pUtƒƒ|_||_||_    |j
ƒ|_ d|_ t ƒ|_t|_ttƒƒ|_t|_tj|_dS(sCThis constructor should always be called with keyword arguments. Arguments are:
 
        *group* should be None; reserved for future extension when a ThreadGroup
        class is implemented.
 
        *target* is the callable object to be invoked by the run()
        method. Defaults to None, meaning nothing is called.
 
        *name* is the thread name. By default, a unique name is constructed of
        the form "Thread-N" where N is a small decimal number.
 
        *args* is the argument tuple for the target invocation. Defaults to ().
 
        *kwargs* is a dictionary of keyword arguments for the target
        invocation. Defaults to {}.
 
        If a subclass overrides the constructor, it must make sure to invoke
        the base class constructor (Thread.__init__()) before doing anything
        else to the thread.
 
s#group argument must be None for nowN(RtAssertionErrorRR t_Thread__targettstrRyt _Thread__namet _Thread__argst_Thread__kwargst _set_daemont_Thread__daemonict_Thread__identR
t_Thread__startedRRt_Thread__stoppedRR t_Thread__blockRSt_Thread__initializedR%R&t_Thread__stderr(RtgroupttargetR#R)R2R((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyR Žs                              cCs0t|dƒr|jjƒn|jjƒdS(NR…(thasattrR…R RƒRr(R((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyRr·scCs|jS(N(R…(R((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyt_block¾scCs
tƒjS(N(Rtdaemon(R((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyR€ÃscCs˜|jstdƒ‚d}|jjƒr3d}n|jrEd}n|jr[|d7}n|jdk    r~|d|j7}nd|jj    |j
|fS(Ns Thread.__init__() was not calledtinitialtstartedtstoppeds daemons %ss <%s(%s, %s)>( R†RzRƒRvR„RR‚RR7R,R}(Rtstatus((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyR9Çs                 cCs­|jstdƒ‚n|jjƒr6tdƒ‚n|jd|ƒt|t|<WdQXyt|jdƒWn(t    k
r›t t|=WdQX‚nX|jj
ƒdS(s-Start the thread's activity.
 
        It must be called at most once per thread object. It arranges for the
        object's run() method to be invoked in a separate thread of control.
 
        This method will raise a RuntimeError if called more than once on the
        same thread object.
 
        sthread.__init__() not calleds threads can only be started onces%s.start(): starting threadN(( R†R>RƒRvR+t_active_limbo_lockt_limbot_start_new_threadt_Thread__bootstrapt    ExceptionRa(R((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pytstartÔs
     cCs@z&|jr%|j|j|jŽnWd|`|`|`XdS(sXMethod representing the thread's activity.
 
        You may override this method in a subclass. The standard run() method
        invokes the callable object passed to the object's constructor as the
        target argument, if any, with sequential and keyword arguments taken
        from the args and kwargs arguments, respectively.
 
        N(R{R~R(R((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pytrunîs        cCs8y|jƒWn#|jr-tdkr-dS‚nXdS(N(t_Thread__bootstrap_innerRR%R(R((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyt __bootstrapÿs cCstƒ|_dS(N(R!R‚(R((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyt
_set_identsc
Cs    zÒ|jƒ|jjƒt|t|j<t|=WdQX|jd|ƒtrq|jd|ƒt    j
tƒnt r—|jd|ƒt    j t ƒnz,y|j ƒWntk
rË|jd|ƒn÷|jd|ƒt    rt    jjd|jtƒfƒqÂ|jƒ\}}}z…|jd|jdIJ|jd    IJxB|rˆ|jd
|jjj|j|jjjfIJ|j}qGW|jd ||fIJWd~~~XnX|jd |ƒWd|jƒXWdt'|jƒyttƒ=WnnXWdQXXdS( 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(RšRƒRtR‘R"R‚R’R+R0R%RR.RR—t
SystemExitR&R'R#t _format_exct_Thread__exc_infoR‡ttb_frametf_codet co_filenamet    tb_linenotco_namettb_nextt_Thread__exc_cleart _Thread__stopR!(Rtexc_typet    exc_valuetexc_tb((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyt__bootstrap_inners^
 
      
cCsGt|dƒsdS|jjƒt|_|jjƒ|jjƒdS(NR…(RŠR…R:RSR„RhR?(R((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyt__stop`s       cCsHytttƒ=WdQXWn&tk
rCdtjkrD‚qDnXdS(sARemove current thread from the dict of currently running threads.Ntdummy_threading(R‘R"R!R$R%tmodules(R((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyt__deletejs  cCs<|jstdƒ‚n|jjƒs6tdƒ‚n|tƒkrTtdƒ‚n|jsp|jd|ƒn|jjƒzª|dkr¼x|js¨|jj
ƒqW|jd|ƒnjt ƒ|}xZ|js|t ƒ}|dkr|jd|ƒPn|jj
|ƒqÌW|jd|ƒWd|jj ƒXdS(    sWait until the thread terminates.
 
        This blocks the calling thread until the thread whose join() method is
        called terminates -- either normally or through an unhandled exception
        or until the optional timeout occurs.
 
        When the timeout argument is present and not None, it should be a
        floating point number specifying a timeout for the operation in seconds
        (or fractions thereof). As join() always returns None, you must call
        isAlive() after join() to decide whether a timeout happened -- if the
        thread is still alive, the join() call timed out.
 
        When the timeout argument is not present or None, the operation will
        block until the thread terminates.
 
        A thread can be join()ed many times.
 
        join() raises a RuntimeError if an attempt is made to join the current
        thread as that would cause a deadlock. It is also an error to join() a
        thread before it has been started and attempts to do so raises the same
        exception.
 
        sThread.__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 outN( R†R>RƒRvRR„R+R…R:RRaRUR?(RRZtdeadlineR^((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pytjoins.               cCs|jstdƒ‚|jS(s¸A string used for identification purposes only.
 
        It has no semantics. Multiple threads may be given the same name. The
        initial name is set by the constructor.
 
        sThread.__init__() not called(R†RzR}(R((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyR#ÅscCs(|jstdƒ‚t|ƒ|_dS(NsThread.__init__() not called(R†RzR|R}(RR#((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyR#ÐscCs|jstdƒ‚|jS(s;Thread identifier of this thread or None if it has not been started.
 
        This is a nonzero integer. See the thread.get_ident() function. Thread
        identifiers may be recycled when a thread exits and another thread is
        created. The identifier is available even after the thread has exited.
 
        sThread.__init__() not called(R†RzR‚(R((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyR*Õs    cCs,|jstdƒ‚|jjƒo+|j S(söReturn whether the thread is alive.
 
        This method returns True just before the run() method starts until just
        after the run() method terminates. The module function enumerate()
        returns a list of all alive threads.
 
        sThread.__init__() not called(R†RzRƒRvR„(R((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pytisAliveáscCs|jstdƒ‚|jS(sÜA boolean value indicating whether this thread is a daemon thread (True) or not (False).
 
        This must be set before start() is called, otherwise RuntimeError is
        raised. Its initial value is inherited from the creating thread; the
        main thread is not a daemon thread and therefore all threads created in
        the main thread default to daemon = False.
 
        The entire Python program exits when no alive non-daemon threads are
        left.
 
        sThread.__init__() not called(R†RzR(R((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyRŒîs cCsC|jstdƒ‚n|jjƒr6tdƒ‚n||_dS(NsThread.__init__() not calleds)cannot set daemon status of active thread(R†R>RƒRvR(Rtdaemonic((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyRŒþs
    cCs|jS(N(RŒ(R((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pytisDaemonscCs ||_dS(N(RŒ(RR±((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyt    setDaemon    scCs|jS(N(R#(R((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pytgetName scCs ||_dS(N(R#(RR#((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pytsetNamesN((#R,R-RIRRR†R%texc_infoRt    exc_clearR¤RR RrtpropertyR‹R€R9R–R—R”RšR˜R¥t_Thread__deleteR¯R#tsetterR*R°tis_aliveRŒR²R³R´Rµ(((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyR~s:            (                                J    
   # 8                  cOs t||ŽS(súFactory function to create a Timer object.
 
    Timers 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
 
    (t_Timer(R)R2((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyRs
R¼cBs/eZdZgid„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
 
    cCsAtj|ƒ||_||_||_||_tƒ|_dS(N(RR tintervaltfunctionR)R2R
tfinished(RR½R¾R)R2((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyR )s                  cCs|jjƒdS(s(Stop the timer if it hasn't finished yetN(R¿Rt(R((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pytcancel1scCsL|jj|jƒ|jjƒs;|j|j|jŽn|jjƒdS(N(R¿RaR½RvR¾R)R2Rt(R((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyR—5s(R,R-RIR RÀR—(((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyR¼ s    t _MainThreadcBs#eZd„Zd„Zd„ZRS(cCsHtj|ddƒ|jjƒ|jƒt|ttƒ<WdQXdS(NR#t
MainThread(RR RƒRtRšR‘R"R!(R((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyR @s
 
cCstS(N(RR(R((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyR€GscCsj|jƒtƒ}|r,|jd|ƒnx|rK|jƒtƒ}q/W|jd|ƒ|jƒdS(Ns%s: waiting for other threadss %s: exiting(R¥t_pickSomeNonDaemonThreadR+R¯R¹(RRA((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyt    _exitfuncJs
        
 (R,R-R R€RÄ(((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyRÁ>s        cCs2x+tƒD] }|j r
|jƒr
|Sq
WdS(N(R    RŒR»R(RA((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyRÃWst _DummyThreadcBs&eZd„Zd„Zdd„ZRS(cCsTtj|dtdƒƒ|`|jjƒ|jƒt|tt    ƒ<WdQXdS(NR#sDummy-%d(
RR RyR…RƒRtRšR‘R"R!(R((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyR hs  
cCstS(N(RS(R((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyR€uscCststdƒ‚dS(Nscannot join a dummy thread(RRRz(RRZ((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyR¯xsN(R,R-R R€RR¯(((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyRÅfs        cCs+yttƒSWntk
r&tƒSXdS(sïReturn the current Thread object, corresponding to the caller's thread of control.
 
    If the caller's thread of control was not created through the threading
    module, a dummy thread object with limited functionality is returned.
 
    N(R"R!R$RÅ(((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyR~s cCs%tttƒttƒSWdQXdS(s’Return the number of Thread objects currently alive.
 
    The returned count is equal to the length of the list returned by
    enumerate().
 
    N(R‘RPR"R’(((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyRscCstjƒtjƒS(N(R"tvaluesR’(((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyt
_enumerate™scCs%ttjƒtjƒSWdQXdS(sýReturn a list of all Thread objects currently alive.
 
    The list includes daemonic threads, dummy thread objects created by
    current_thread(), and the main thread. It excludes terminated threads and
    threads that have not yet been started.
 
    N(R‘R"RÆR’(((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyR    s(R(t_local(RcCsÊtƒai}tƒ}t¦xetjƒD]W}t|dƒrN|jƒn||krytƒ}||_|||<q,|j    ƒq,Wt
j ƒtj ƒtj |ƒt tƒdksÀt‚WdQXdS(NRri(R3R‘RR"t
itervaluesRŠRrR!R‚R¥R’RutupdateRPRz(t
new_activetcurrenttthreadR*((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyt _after_fork¹s                    
 
 c Csdtfd„ƒY}dtfd„ƒY}dtfd„ƒY}d}d}d    }||ƒ}g}xAt|ƒD]3}|||ƒ}    d
|d |    _|j|    ƒqsW||||ƒ}
x"|D]}    |    jƒtd ƒqÄW|
jƒx|D]}    |    jƒqóW|
jƒdS( Nt BoundedQueuecBs#eZd„Zd„Zd„ZRS(cSsVtj|ƒtƒ|_t|jƒ|_t|jƒ|_||_tƒ|_    dS(N(
RR R tmonRR=twctlimitt_dequetqueue(RRÒ((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyR âs       cSs“|jjƒx9t|jƒ|jkrH|jd|ƒ|jjƒqW|jj|ƒ|jd|t|jƒƒ|j    j
ƒ|jj ƒdS(Nsput(%s): queue fulls put(%s): appended, length now %d( RÐR:RPRÔRÒR+RÑRaRTR=RfR?(Rtitem((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pytputês      cSs€|jjƒx'|js6|jdƒ|jjƒqW|jjƒ}|jd|t|jƒƒ|jj    ƒ|jj
ƒ|S(Nsget(): queue emptysget(): got %s, %d left( RÐR:RÔR+R=RatpopleftRPRÑRfR?(RRÕ((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pytgetõs     (R,R-R RÖRØ(((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyRÏàs         tProducerThreadcBseZd„Zd„ZRS(cSs)tj|ddƒ||_||_dS(NR#tProducer(RR RÔtquota(RRÔRÛ((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyR s    cSshddlm}d}xK||jkrc|d}|jjd|j|fƒt|ƒdƒqWdS(Niÿÿÿÿ(trandomiis%s.%dgñh㈵øä>(RÜRÛRÔRÖR#RW(RRÜtcounter((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyR—s 
(R,R-R R—(((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyRÙs    tConsumerThreadcBseZd„Zd„ZRS(cSs)tj|ddƒ||_||_dS(NR#tConsumer(RR RÔR@(RRÔR@((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyR s    cSs>x7|jdkr9|jjƒ}|GH|jd|_qWdS(Nii(R@RÔRØ(RRÕ((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyR—s(R,R-R R—(((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyRÞs    iiis Producer-%digíµ ÷ư>(RRtrangeR#RTR–RWR¯( RÏRÙRÞtNPtQLtNItQtPtiRAtC((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyt_testÞs(    
 
 t__main__(JRItsysR%RÍt ImportErrorR¬R,twarningst collectionsRRÓRRURRWt    tracebackRRœt__all__tstart_new_threadR“t allocate_lockR3t    get_identR!terrort ThreadErrortfilterwarningstDeprecationWarningRRRtobjectRRR.R0RRR R R1RRKR RiRRmR
RoRwRyR‘R"R’RRR¼RÁRÃRÅRRRRRÇR    RRÄt    _shutdownRÈRt_threading_localRÎRè(((sQ/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/threading.pyt<module>s„  
                           
         u          J        
K     ÿ—                  
               %    R