Home
last modified time | relevance | path

Searched refs:threading (Results 1 – 25 of 56) sorted by relevance

123

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_threading.py9 threading = test.test_support.import_module('threading') variable
29 class TestThread(threading.Thread):
31 threading.Thread.__init__(self, name=name)
80 sema = threading.BoundedSemaphore(value=3)
81 mutex = threading.RLock()
107 self.assertFalse(threading.currentThread().ident is None)
109 ident.append(threading.currentThread().ident)
111 done = threading.Event()
117 del threading._active[ident[0]]
124 threading.stack_size(262144)
[all …]
Dtest_capi.py11 import threading
13 threading = None variable
16 @unittest.skipUnless(threading, 'Threading required for this test.')
63 context.lock = threading.Lock()
64 context.event = threading.Event()
67 t = threading.Thread(target=self.pendingcalls_thread, args = (context,))
129 if threading:
133 t=threading.Thread(target=TestThreadState)
Dtest_threading_local.py9 threading = test_support.import_module('threading') variable
32 t = threading.Thread(target=target, args=(local, weaklist))
68 t = threading.Thread(target=f, args=(i,))
81 e1 = threading.Event()
82 e2 = threading.Event()
100 t = threading.Thread(target=f)
131 e1 = threading.Event()
132 e2 = threading.Event()
152 t1 = threading.Thread(target=f1)
155 t2 = threading.Thread(target=f2)
Dthreaded_import_hangers.py10 import threading
21 class Worker(threading.Thread):
23 threading.Thread.__init__(self)
Dtest_smtplib.py15 import threading
17 threading = None variable
43 @unittest.skipUnless(threading, 'Threading required for this test.')
48 self.evt = threading.Event()
53 self.thread = threading.Thread(target=server, args=servargs)
146 @unittest.skipUnless(threading, 'Threading required for this test.')
156 self.serv_evt = threading.Event()
157 self.client_evt = threading.Event()
163 self.thread = threading.Thread(target=debugging_server, args=serv_args)
265 @unittest.skipUnless(threading, 'Threading required for this test.')
[all …]
Dtest_asynchat.py8 import threading
10 threading = None variable
15 if threading:
16 class echo_server(threading.Thread):
22 threading.Thread.__init__(self)
90 event = threading.Event()
99 @unittest.skipUnless(threading, 'Threading required for this test.')
110 event = threading.Event()
214 s.start_resend_event = threading.Event()
Dtest_contextlib.py9 import threading
11 threading = None variable
270 @unittest.skipUnless(threading, 'Threading required for this test.')
285 lock = threading.Lock()
289 lock = threading.RLock()
293 lock = threading.Condition()
299 lock = threading.Semaphore()
309 lock = threading.BoundedSemaphore()
Dtest_threadedtempfile.py22 threading = import_module('threading') variable
27 startEvent = threading.Event()
29 class TempFileGreedy(threading.Thread):
Dtest_fork1.py12 threading = import_module('threading') variable
32 import_started = threading.Event()
43 t = threading.Thread(target=importer)
Dtest_poplib.py17 threading = test_support.import_module('threading') variable
107 class DummyPOP3Server(asyncore.dispatcher, threading.Thread):
112 threading.Thread.__init__(self)
118 self.active_lock = threading.Lock()
123 self.__flag = threading.Event()
124 threading.Thread.start(self)
282 self.evt = threading.Event()
286 threading.Thread(target=self.server, args=(self.evt,self.sock)).start()
Dtest_socketserver.py18 import threading
20 threading = None variable
64 @unittest.skipUnless(threading, 'Threading required for this test.')
126 @unittest.skipUnless(threading, 'Threading required for this test.')
138 t = threading.Thread(
262 t = threading.Thread(
Dtest_queue.py7 threading = test_support.import_module('threading') variable
12 class _TriggerThread(threading.Thread):
16 self.startedEvent = threading.Event()
17 threading.Thread.__init__(self)
85 self.cumlock = threading.Lock()
153 threading.Thread(target=self.worker, args=(q,)).start()
Dtest_ssl.py360 import threading
366 class ThreadedEchoServer(threading.Thread):
368 class ConnectionHandler(threading.Thread):
380 threading.Thread.__init__(self)
515 threading.Thread.__init__(self)
520 threading.Thread.start(self)
546 class AsyncoreEchoServer(threading.Thread):
618 threading.Thread.__init__(self)
626 threading.Thread.start(self)
639 class SocketServerHTTPSServer(threading.Thread):
[all …]
Dtest_docxmlrpc.py5 threading = test_support.import_module('threading') variable
76 self.evt = threading.Event()
77 threading.Thread(target=server, args=(self.evt, 1)).start()
Dtest_hashlib.py14 import threading
16 threading = None variable
320 @unittest.skipUnless(threading, 'Threading required for this test.')
347 event = threading.Event()
349 threading.Thread(target=hash_in_chunks,
Dtest_telnetlib.py8 threading = test_support.import_module('threading') variable
48 self.evt = threading.Event()
52 self.thread = threading.Thread(target=server, args=(self.evt,self.sock))
100 self.evt = threading.Event()
105 self.thread = threading.Thread(target=server, args=(self.evt,self.sock, self.dataq))
Dtest_ftplib.py21 threading = test_support.import_module('threading') variable
207 class DummyFTPServer(asyncore.dispatcher, threading.Thread):
212 threading.Thread.__init__(self)
218 self.active_lock = threading.Lock()
223 self.__flag = threading.Event()
224 threading.Thread.start(self)
668 self.evt = threading.Event()
672 threading.Thread(target=self.server, args=(self.evt,self.sock)).start()
Dtest_xmlrpc.py17 import threading
19 threading = None variable
417 @unittest.skipUnless(threading, 'Threading required for this test.')
427 self.evt = threading.Event()
430 threading.Thread(target=self.threadFunc, args=serv_args).start()
742 if threading:
769 @unittest.skipUnless(threading, 'Threading required for this test.')
772 self.evt = threading.Event()
775 threading.Thread(target=http_server, args=serv_args).start()
Dtest_urllib2_localnet.py10 threading = test_support.import_module('threading') variable
40 class LoopbackHttpServerThread(threading.Thread):
44 threading.Thread.__init__(self)
46 self.ready = threading.Event()
Dtest_imaplib.py5 threading = support.import_module('threading') variable
123 t = threading.Thread(
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/ccbench/
Dccbench.py16 import threading
215 ready_cond = threading.Condition()
216 start_cond = threading.Condition()
231 threads.append(threading.Thread(target=run))
314 start_cond = threading.Condition()
323 ready_cond = threading.Condition()
335 threads.append(threading.Thread(target=run))
445 start_cond = threading.Condition()
454 ready_cond = threading.Condition()
466 threads.append(threading.Thread(target=run))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/
Danalyze_dxp.py27 import threading
34 _profile_lock = threading.RLock()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
DSocketServer.py137 import threading
139 import dummy_threading as threading namespace
200 self.__is_shut_down = threading.Event()
590 t = threading.Thread(target = self.process_request_thread,
Ddummy_threading.py45 import threading
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
DSocketServer.py138 import threading
140 import dummy_threading as threading namespace
210 self.__is_shut_down = threading.Event()
607 t = threading.Thread(target = self.process_request_thread,

123