| /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
| test_imp.py | 73 import thread namespace
|
| test_threaded_import.py | 10 thread = import_module('thread') variable 12 critical_section = thread.allocate_lock() 13 done = thread.allocate_lock() 22 # thread can exit and set critical_section to None as part of global 45 # Tricky: When regrtest imports this module, the thread running regrtest 67 thread.start_new_thread(task, ())
|
| /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
| fork_wait.py | 5 We want fork1() semantics -- only the forking thread survives in the 17 thread = test_support.import_module('thread') variable 51 thread.start_new(self.f, (i,))
|
| test_imp.py | 73 import thread namespace
|
| /system/core/toolbox/ |
| setconsole.c | 129 pthread_t thread; local 134 pthread_create(&thread, &attr, activate_thread, (void*)fd);
|
| /libcore/libart/src/main/java/java/lang/ |
| ThreadGroup.java | 28 * This class is obsolete. See <i>Effective Java</i> Item 73, "Avoid thread groups" for details. 29 * @see Thread 31 public class ThreadGroup implements Thread.UncaughtExceptionHandler { 38 private int maxPriority = Thread.MAX_PRIORITY; 48 private final List<WeakReference<Thread>> threadRefs = new ArrayList<WeakReference<Thread>>(5); 54 private final Iterable<Thread> threads = CollectionUtils.dereferenceIterable(threadRefs, true); 57 * Thread groups. Access is guarded by synchronizing on this field. 73 * will be child of the {@code ThreadGroup} to which the calling thread belongs. 76 * @see Thread#currentThrea 342 Thread thread = threadRefs.get(i).get(); local [all...] |
| /libcore/libdvm/src/main/java/java/lang/ |
| ThreadGroup.java | 28 * This class is obsolete. See <i>Effective Java</i> Item 73, "Avoid thread groups" for details. 29 * @see Thread 31 public class ThreadGroup implements Thread.UncaughtExceptionHandler { 38 private int maxPriority = Thread.MAX_PRIORITY; 48 private final List<WeakReference<Thread>> threadRefs = new ArrayList<WeakReference<Thread>>(5); 54 private final Iterable<Thread> threads = CollectionUtils.dereferenceIterable(threadRefs, true); 57 * Thread groups. Access is guarded by synchronizing on this field. 73 * will be child of the {@code ThreadGroup} to which the calling thread belongs. 76 * @see Thread#currentThrea 342 Thread thread = threadRefs.get(i).get(); local [all...] |
| VMThread.java | 20 Thread thread; field in class:VMThread 23 VMThread(Thread t) { 24 thread = t; 27 native static void create(Thread t, long stackSize); 29 static native Thread currentThread(); 39 * Starts the VMThread (and thus the Java Thread) with the given 43 VMThread.create(thread, stackSize); 47 * Queries whether this Thread holds a monitor lock on the 56 * Holds a mapping from native Thread statuses to Java one. Required fo [all...] |
| /libcore/luni/src/test/java/libcore/java/nio/channels/ |
| SelectorTest.java | 80 new Thread(new Runnable() { 83 Thread.sleep(2000); 97 Thread.currentThread().interrupt(); 115 Thread thread = new Thread(new Runnable() { local 124 thread.start();
|
| /art/compiler/llvm/ |
| runtime_support_builder_arm.cc | 20 #include "thread.h" 60 /* Thread */ 65 CallInst* thread = irb_.CreateCall(func); local 66 thread->setDoesNotAccessMemory(); 67 irb_.SetTBAA(thread, kTBAAConstJObject); 68 return thread; 98 Value* RuntimeSupportBuilderARM::EmitSetCurrentThread(Value* thread) { 100 // sets the current thread. 115 irb_.CreateCall(func, thread);
|
| /art/runtime/native/ |
| dalvik_system_VMStack.cc | 35 // Suspend thread to build stack trace. 37 Thread* thread = Thread::SuspendForDebugger(peer, true, &timed_out); local 38 if (thread != NULL) { 42 trace = thread->CreateInternalStackTrace(soa); 44 // Restart suspended thread. 45 Runtime::Current()->GetThreadList()->Resume(thread, true); 49 LOG(ERROR) << "Trying to get thread's stack failed as the thread failed to suspend within a [all...] |
| /dalvik/vm/alloc/ |
| Visit.cpp | 83 static void visitThreadStack(RootVisitor *visitor, Thread *thread, void *arg) 86 assert(thread != NULL); 87 u4 threadId = thread->threadId; 89 for (u4 *fp = (u4 *)thread->interpSave.curFrame; 160 * Visits all roots associated with a thread. 162 static void visitThread(RootVisitor *visitor, Thread *thread, void *arg) 167 assert(thread != NULL); 168 threadId = thread->threadId 184 Thread *thread; local [all...] |
| /external/chromium/base/threading/ |
| simple_thread.cc | 30 DCHECK(!HasBeenStarted()) << "Tried to Start a thread multiple times."; 33 event_.Wait(); // Wait for the thread to complete initialization. 37 DCHECK(HasBeenStarted()) << "Tried to Join a never-started thread."; 38 DCHECK(!HasBeenJoined()) << "Tried to Join a thread multiple times."; 50 // We've initialized our new thread, signal that we're done to Start(). 95 DelegateSimpleThread* thread = new DelegateSimpleThread(this, name_prefix_); local 96 thread->Start(); 97 threads_.push_back(thread);
|
| /external/chromium_org/base/win/ |
| scoped_process_information_unittest.cc | 91 HANDLE thread = process_info.TakeThreadHandle(); local 92 EXPECT_EQ(kThreadHandle, thread); 104 HANDLE thread = process_info.TakeThreadHandle(); local
|
| /external/chromium_org/remoting/base/ |
| auto_thread.cc | 42 // Fields describing the desired thread behaviour. 45 // Used to receive the AutoThreadTaskRunner for the thread. 48 // Used to synchronize thread startup. 60 AutoThread* thread = new AutoThread(name, joiner.get()); local 61 scoped_refptr<AutoThreadTaskRunner> task_runner = thread->StartWithType(type); 63 delete thread; 80 AutoThread* thread = new AutoThread(name, joiner); local 81 thread->SetComInitType(com_init_type); 83 thread->StartWithType(loop_type); 85 delete thread; [all...] |
| /external/chromium_org/third_party/libxml/src/ |
| regressions.py | 2 import glob, os, string, sys, thread, time namespace 33 # list already read in by a separate thread; the second is a file descriptor. 172 th1 = thread.start_new_thread(readPfile, (pout, outfile, th1Flag)) 173 th2 = thread.start_new_thread(readPfile, (perr, errfile, th2Flag))
|
| /external/chromium_org/webkit/child/ |
| webkitplatformsupport_child_impl.cc | 67 WebThreadImplForMessageLoop* thread = local 69 if (thread) 70 return (thread); 77 thread = new WebThreadImplForMessageLoop(message_loop.get()); 78 current_thread_slot_.Set(thread); 79 return thread; 106 void WebKitPlatformSupportChildImpl::DestroyCurrentThread(void* thread) { 108 static_cast<WebThreadImplForMessageLoop*>(thread);
|
| /external/chromium_org/win8/test/ |
| open_with_dialog_async.cc | 6 // SHOpenWithDialog function. The call is made on a dedicated UI thread in a 20 #include "base/threading/thread.h" 37 base::Thread thread; member in struct:win8::__anon17265::OpenWithContext 53 : thread("OpenWithDialog"), 60 thread.init_com_with_mta(false); 61 thread.Start(); 67 // SHOpenWithDialog on the caller's initial thread. 72 // Join with the thread. 80 // thread [all...] |
| /external/clang/tools/scan-view/ |
| scan-view | 8 import thread namespace 123 # Kick off thread to wait for server and start web browser, if 126 t = thread.start_new_thread(start_browser, (port,options))
|
| /external/jmonkeyengine/engine/src/networking/com/jme3/network/kernel/udp/ |
| UdpKernel.java | 59 private HostThread thread; field in class:UdpKernel 90 if( thread != null ) 95 thread = createHostThread(); 98 thread.connect(); 99 thread.start(); 107 if( thread == null ) 111 thread.close(); 113 thread = null; 151 p = new UdpEndpoint( this, nextEndpointId(), address, thread.getSocket() ); 227 thread.getSocket().send(packet) [all...] |
| /external/lzma/CPP/Windows/ |
| Thread.h | 1 // Windows/Thread.h
14 ::CThread thread;
member in class:NWindows::CThread 16 CThread() { Thread_Construct(&thread); }
18 bool IsCreated() { return Thread_WasCreated(&thread) != 0; }
19 WRes Close() { return Thread_Close(&thread); }
21 { return Thread_Create(&thread, startAddress, parameter); }
22 WRes Wait() { return Thread_Wait(&thread); }
25 operator HANDLE() { return thread; }
26 void Attach(HANDLE handle) { thread = handle; }
27 HANDLE Detach() { HANDLE h = thread; thread = NULL; return h; } [all...] |
| /external/webrtc/src/system_wrappers/source/ |
| thread_unittest.cc | 69 ThreadWrapper* thread = ThreadWrapper::CreateThread(&NullRunFunction); local 71 ASSERT_TRUE(thread->Start(id)); 72 EXPECT_TRUE(thread->Stop()); 73 delete thread; 85 ThreadWrapper* thread = ThreadWrapper::CreateThread(&SetFlagRunFunction, local 88 ASSERT_TRUE(thread->Start(id)); 90 EXPECT_TRUE(thread->Stop()); 91 // We expect the thread to have run at least once. 93 delete thread;
|
| thread_win.cc | 41 // Set the thread name to appear in the VS debugger. 157 // Wait up to 2 seconds for the thread to complete. 191 "Thread with name:%s started ", _name); 192 SetThreadName(-1, _name); // -1, set thread name for the calling thread. 196 "Thread without name started"); 215 "Thread with name:%s stopped", _name); 218 "Thread without name stopped"); 225 HANDLE thread = _thread; local 227 CloseHandle(thread); [all...] |
| /frameworks/base/libs/hwui/thread/ |
| TaskManager.cpp | 62 sp<WorkerThread> thread; local 66 thread = mThreads[i]; 71 return thread->addTask(wrapper); 77 // Thread
|
| /hardware/samsung_slsi/exynos5/exynos_omx/openmax/exynos_omx/osal/ |
| Exynos_OSAL_Thread.c | 60 EXYNOS_THREAD_HANDLE_TYPE *thread; local 63 thread = Exynos_OSAL_Malloc(sizeof(EXYNOS_THREAD_HANDLE_TYPE)); 64 Exynos_OSAL_Memset(thread, 0, sizeof(EXYNOS_THREAD_HANDLE_TYPE)); 66 pthread_attr_init(&thread->attr); 67 if (thread->stack_size != 0) 68 pthread_attr_setstacksize(&thread->attr, thread->stack_size); 71 if (thread->schedparam.sched_priority != 0) 72 pthread_attr_setschedparam(&thread->attr, &thread->schedparam) 113 EXYNOS_THREAD_HANDLE_TYPE *thread = (EXYNOS_THREAD_HANDLE_TYPE *)threadHandle; local 135 EXYNOS_THREAD_HANDLE_TYPE *thread = (EXYNOS_THREAD_HANDLE_TYPE *)threadHandle; local [all...] |