Home
last modified time | relevance | path

Searched refs:_thread (Results 1 – 25 of 85) sorted by relevance

1234

/external/python/cpython2/Lib/test/
Dtest_dummy_thread.py8 import dummy_thread as _thread namespace
23 self.lock = _thread.allocate_lock()
39 self.assertRaises(_thread.error, self.lock.release)
74 _thread.start_new_thread(delay_unlock,(self.lock, DELAY))
91 self.assertRaises(SystemExit, _thread.exit)
95 self.assertIsInstance(_thread.get_ident(), int,
97 self.assertNotEqual(_thread.get_ident(), 0,
102 self.assertIsInstance(_thread.allocate_lock(), _thread.LockType,
110 _thread.interrupt_main()
111 self.assertRaises(KeyboardInterrupt, _thread.start_new_thread,
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/
DDefaultExecutor.kt31 private var _thread: Thread? = null variable
34 get() = _thread ?: createThreadSync()
86 _thread = null // this thread is dead in invokeOnTimeout()
96 return _thread ?: Thread(this, THREAD_NAME).apply { in createThreadSync()
97 _thread = this in createThreadSync()
106 assert { _thread == null } // ensure we are at a clean state in ensureStarted()
127 while (debugStatus != SHUTDOWN_ACK && _thread != null) { in shutdown()
128 _thread?.let { unpark(it) } // wake up thread if present in shutdown()
146 get() = _thread != null
/external/pigweed/pw_env_setup/py/pw_env_setup/
Dspinner.py29 self._thread = None
49 self._thread = threading.Thread(target=self._spin)
50 self._thread.start()
56 assert self._thread
58 self._thread.join()
59 self._thread = None
/external/llvm-project/debuginfo-tests/dexter/dex/debugger/lldb/
DLLDB.py28 self._thread = None
156 self._thread = self._process.GetThreadAtIndex(0)
157 assert self._thread, (self._process, self._thread)
160 self._thread.StepInto()
170 for i in range(0, self._thread.GetNumFrames()):
171 sb_frame = self._thread.GetFrameAtIndex(i)
214 reason = self._translate_stop_reason(self._thread.GetStopReason())
227 return not self._thread.GetFrameAtIndex(0)
234 result = self._thread.GetFrameAtIndex(frame_idx
269 var_result = self._thread.GetFrameAtIndex(frame_idx).FindVariable(expression)
/external/autotest/server/cros/
Dremote_command.py61 self._thread = _HelperThread(self._host, cmd)
62 self._thread.start()
85 self._thread.join(timeout)
86 if self._thread.isAlive():
107 return self._thread.result
/external/mesa3d/src/glx/apple/
Dapple_glx_log.c118 char *_thread; in _apple_glx_vlog() local
119 asprintf(&_thread, "%"PRIu64, thread); in _apple_glx_vlog()
120 if (_thread) { in _apple_glx_vlog()
121 asl_set(msg, "Thread", _thread); in _apple_glx_vlog()
122 free(_thread); in _apple_glx_vlog()
/external/python/cpython3/Lib/multiprocessing/
Dresource_sharer.py69 self._thread = None
99 self._thread.join(timeout)
100 if self._thread.is_alive():
104 self._thread = None
120 self._thread = None
131 self._thread = t
Dqueues.py77 self._thread = None
93 if self._thread is None:
169 self._thread = threading.Thread(
176 self._thread.daemon = True
179 self._thread.start()
184 self._thread, Queue._finalize_join,
185 [weakref.ref(self._thread)],
316 if self._thread is None:
/external/grpc-grpc/src/python/grpcio/grpc/_cython/_cygrpc/
Dfork_windows.pyx.pxi26 self._thread = threading.Thread(target=target, args=args)
29 self._thread.daemon = daemonic
32 self._thread.start()
35 self._thread.join()
Dfork_posix.pyx.pxi97 self._thread = threading.Thread(target=managed_target, args=args)
99 self._thread = threading.Thread(target=target, args=args)
102 self._thread.daemon = daemonic
107 self._thread.start()
110 self._thread.join()
/external/grpc-grpc/src/python/grpcio_tests/tests/unit/_cython/
Dtest_utilities.py33 self._thread = threading.Thread(target=wrapped_function)
34 self._thread.start()
41 self._thread.join()
/external/python/cpython2/Lib/multiprocessing/
Dqueues.py90 self._thread = None
106 if self._thread is None:
186 self._thread = threading.Thread(
192 self._thread.daemon = True
195 self._thread.start()
201 self._thread, Queue._finalize_join,
202 [weakref.ref(self._thread)],
317 if self._thread is None:
/external/python/cpython3/Lib/
Dthreading.py5 import _thread
34 _start_new_thread = _thread.start_new_thread
35 _allocate_lock = _thread.allocate_lock
36 _set_sentinel = _thread._set_sentinel
37 get_ident = _thread.get_ident
39 get_native_id = _thread.get_native_id
44 ThreadError = _thread.error
46 _CRLock = _thread.RLock
49 TIMEOUT_MAX = _thread.TIMEOUT_MAX
50 del _thread
[all …]
/external/autotest/client/site_tests/platform_PrinterPpds/
Dfake_printer.py50 self._thread = threading.Thread(target = self._thread_read_docs)
51 self._thread.start();
72 self._thread.join()
Dtest_multithreaded_processor.py31 return self._processor.run(self._thread, count)
33 def _thread(self, task_id): member in EvenNumbersGenerator
Dmultithreaded_processor.py64 thread = threading.Thread(target=self._thread, args=[function_task])
82 def _thread(self, function_task): member in MultithreadedProcessor
/external/autotest/client/cros/audio/
Dcmd_utils.py61 self._thread = threading.Thread(target=self._service_run)
62 self._thread.daemon = True
63 self._thread.start()
112 self._thread.join()
/external/python/cpython3/Lib/test/
Dtest_threading.py11 import _thread
134 tid = _thread.start_new_thread(f, ())
146 except _thread.error:
158 except _thread.error:
175 tid = _thread.start_new_thread(f, (mutex,))
649 started = _thread.allocate_lock()
650 finish = _thread.allocate_lock()
684 started = _thread.allocate_lock()
685 finish = _thread.allocate_lock()
1405 _thread.interrupt_main()
[all …]
Dtest_threading_local.py9 import _thread
197 _local = _thread._local
211 _threading_local.local = _thread._local
/external/autotest/client/site_tests/policy_ProxySettings/
Dpolicy_ProxySettings.py83 self._thread = threading.Thread(target=self._server.serve_forever)
87 self._thread.start()
92 self._thread.join()
/external/python/cpython2/Doc/library/
Ddummy_thread.rst24 import thread as _thread
26 import dummy_thread as _thread
/external/llvm-project/lldb/test/API/functionalities/gdb_remote_client/
Dgdbclientutils.py312 _thread = None variable in MockGDBServer
330 self._thread = threading.Thread(target=self._run)
331 self._thread.start()
335 self._thread.join()
336 self._thread = None
/external/autotest/client/site_tests/network_ProxyResolver/
Dnetwork_ProxyResolver.py84 self._thread = threading.Thread(target=self._server.serve_forever)
88 self._thread.start()
94 self._thread.join()
/external/python/cpython3/Doc/library/
D_thread.rst1 :mod:`_thread` --- Low-level threading API
4 .. module:: _thread
186 import _thread
188 a_lock = _thread.allocate_lock()
202 equivalent to calling :func:`_thread.exit`.
/external/python/cffi/cffi/
Dlock.py10 from _thread import allocate_lock

1234