| /libcore/luni/src/test/java/tests/api/org/apache/harmony/kernel/dalvik/ |
| ThreadsTest.java | 54 Thread parkerThread = new Thread(parker); 55 Thread waiterThread = 56 new Thread(new WaitAndUnpark(1000, parkerThread)); 66 Thread parkerThread = new Thread(parker); 67 Thread waiterThread = 68 new Thread(new WaitAndUnpark(300, parkerThread)); 75 /** Test the case where the thread is preemptively unparked. */ 78 Thread parkerThread = new Thread(parker) 235 private final Thread thread; field in class:ThreadsTest.WaitAndUnpark [all...] |
| /packages/apps/Gallery/src/com/android/camera/ |
| BitmapManager.java | 33 * decoding if another thread wants to cancel it, it calls the function 34 * cancelThreadDecoding() specifying the Thread which is in decoding. 55 s = "thread state = " + s + ", options = " + mOptions; 60 private final WeakHashMap<Thread, ThreadStatus> mThreadStatus = 61 new WeakHashMap<Thread, ThreadStatus>(); 69 * Get thread status and create one if specified. 71 private synchronized ThreadStatus getOrCreateThreadStatus(Thread t) { 84 private synchronized void setDecodingOptions(Thread t, 89 synchronized void removeDecodingOptions(Thread t) { 95 * The following three methods are used to keep track of which thread 183 Thread thread = Thread.currentThread(); local [all...] |
| /dalvik/vm/interp/ |
| Stack.cpp | 29 * Initialize the interpreter stack in a new thread. 34 bool dvmInitInterpStack(Thread* thread, int stackSize) 36 assert(thread->interpStackStart != NULL); 38 assert(thread->interpSave.curFrame == NULL); 59 static bool dvmPushInterpFrame(Thread* self, const Method* method) 135 bool dvmPushJNIFrame(Thread* self, const Method* method) 211 bool dvmPushLocalFrame(Thread* self, const Method* method) 271 bool dvmPopLocalFrame(Thread* self) 305 static bool dvmPopFrame(Thread* self [all...] |
| /libcore/luni/src/test/java/libcore/java/lang/ |
| OldThreadTest.java | 50 st = new Thread(tg, new SimpleThread(1), "SimpleThread3", 1); 51 assertTrue("Constructed incorrect thread", (st.getThreadGroup() == tg) 61 new Thread(tg, new SimpleThread(1), "SimpleThread3", 75 Thread.dumpStack(); 80 assertTrue(s.contains("java.lang.Thread.dumpStack")); 89 boolean b = Thread.holdsLock(this); 90 assertTrue("Thread should hold lock for object", b); 94 boolean b = Thread.holdsLock(this); 95 assertFalse("Thread should not hold lock for object", b); 103 final Thread parker = new Thread() 156 Thread thread = new Thread() { local 389 Thread thread = launchFiveSecondDummyThread(); local 416 Thread thread = new Thread() { local 442 Thread thread = launchFiveSecondDummyThread(); local [all...] |
| /external/valgrind/main/callgrind/ |
| threads.c | 51 * Per-thread data: 58 * datastructures for the process (= Thread 1). 61 /* current running thread */ 64 static thread_info* thread[VG_N_THREADS]; variable 68 return thread; 73 return thread[CLG_(current_tid)]; 80 thread[i] = 0; 90 if (!thread[t]) continue; 92 (*func)(thread[t]); 131 CLG_DEBUG(0, ">> thread %d (was %d)\n", tid, CLG_(current_tid)) [all...] |
| /dalvik/vm/ |
| Debugger.cpp | 43 that the debugger thread can't cause a GC: it has to expand the heap or 44 fail to allocate. (Might want to make that "is debugger thread AND all 74 The VM has a Thread struct associated with every active thread. The 75 ThreadId we pass to the debugger is the ObjectId for the java/lang/Thread 76 object, so to retrieve the VM's Thread struct we have to scan through the 79 When a thread goes away, we lock the list and free the struct. To 80 avoid having the thread list updated or Thread structs freed out from 81 under us, we want to acquire and hold the thread list lock while we'r 1705 Thread* thread; local 1722 Thread* thread; local 1770 Thread* thread; local 1798 Thread* thread; local 1825 Thread* thread; local 1885 Thread* thread = threadObjToThread(threadObj); local 1962 Thread* thread; local 2056 Thread* thread; local 2078 Thread* thread; local 2155 Thread* thread; local 2176 Thread* thread; local 2569 Thread* thread; local [all...] |
| Misc.h | 235 * Get the current per-thread CPU time. This clock increases monotonically 236 * when the thread is running, but not when it's sleeping or blocked on a 242 * If the thread CPU clock is not available, this always returns (u8)-1. 247 * Per-thread CPU time, in micros. 254 * Like dvmGetThreadCpuTimeNsec, but for a different thread. 256 u8 dvmGetOtherThreadCpuTimeNsec(pthread_t thread); 257 INLINE u8 dvmGetOtherThreadCpuTimeUsec(pthread_t thread) { 258 return dvmGetOtherThreadCpuTimeNsec(thread) / 1000; 300 * Get some per-thread stats from /proc/self/task/N/stat. 305 int processor; /* number of CPU that last executed thread */ [all...] |
| /bionic/libc/kernel/arch-sh/asm/ |
| processor_64.h | 119 #define thread_saved_pc(tsk) (tsk->thread.pc) 121 #define KSTK_EIP(tsk) ((tsk)->thread.pc) 122 #define KSTK_ESP(tsk) ((tsk)->thread.sp)
|
| /external/chromium/base/synchronization/ |
| waitable_event_unittest.cc | 95 PlatformThreadHandle thread; local 96 PlatformThread::Create(0, &signaler, &thread); 100 PlatformThread::Join(thread);
|
| /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/third_party/libjingle/source/talk/p2p/base/ |
| tcpport.h | 50 static TCPPort* Create(talk_base::Thread* thread, 55 TCPPort* port = new TCPPort(thread, factory, network, 74 TCPPort(talk_base::Thread* thread, talk_base::PacketSocketFactory* factory,
|
| /external/qemu/ |
| cpus.c | 243 #include "qemu-thread.h" 313 qemu_thread_self(env->thread); 340 qemu_thread_self(env->thread); 365 qemu_thread_signal(env->thread, SIGUSR1); 460 qemu_thread_signal(penv->thread, SIGUSR1); 469 qemu_thread_signal(penv->thread, SIGUSR1); 482 qemu_thread_signal(penv->thread, SIGUSR1); 491 /* share a single thread for all cpus with TCG */ 493 env->thread = qemu_mallocz(sizeof(QemuThread)); 496 qemu_thread_create(env->thread, tcg_cpu_thread_fn, env) [all...] |
| /packages/apps/Email/emailcommon/src/com/android/emailcommon/service/ |
| ServiceProxy.java | 39 * thread) with a default timeout of 30 seconds (settable) 76 // Run our task on a new thread 77 new Thread(new Runnable() { 135 Thread thread = new Thread(mRunnable); local 136 thread.start(); 138 thread.join();
|
| /packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
| FakeSystemFacade.java | 26 Queue<Thread> mStartedThreads = new LinkedList<Thread>(); 99 public void startThread(Thread thread) { 101 thread.start(); 103 mStartedThreads.add(thread);
|
| /development/tools/emulator/opengl/host/libs/Translator/EGL/ |
| EglImp.cpp | 141 ThreadInfo* thread = getThreadInfo(); local 142 return thread->glesContext; 686 ThreadInfo* thread = getThreadInfo(); local 687 ContextPtr prevCtx = thread->eglContext; 695 thread->updateInfo(ContextPtr(NULL),dpy,NULL,ShareGroupPtr(NULL),dpy->getManager(prevCtx->version())); 753 thread->updateInfo(newCtx,dpy,newCtx->getGlesContext(),newCtx->getShareGroup(),dpy->getManager(newCtx->version())); 786 ThreadInfo* thread = getThreadInfo(); local 787 ContextPtr currentCtx = thread->eglContext; 805 ThreadInfo* thread = getThreadInfo(); local 806 ContextPtr currCtx = thread->eglContext 820 ThreadInfo* thread = getThreadInfo(); local 862 ThreadInfo* thread = getThreadInfo(); local 876 ThreadInfo* thread = getThreadInfo(); local 924 ThreadInfo* thread = getThreadInfo(); local 936 ThreadInfo* thread = getThreadInfo(); local 1007 ThreadInfo* thread = getThreadInfo(); local 1022 ThreadInfo* thread = getThreadInfo(); local 1041 ThreadInfo* thread = getThreadInfo(); local [all...] |
| /libcore/luni/src/main/java/java/util/concurrent/locks/ |
| AbstractQueuedLongSynchronizer.java | 56 * information about a thread in the predecessor of its node. A 57 * "status" field in each node keeps track of whether a thread 61 * thread. The status field does NOT control whether threads are 62 * granted locks etc though. A thread may try to acquire if it is 65 * contender thread may need to rewait. 91 * The thread id for each node is kept in its own node, so a 93 * next link to determine which thread it is. Determination of 134 /** waitStatus value to indicate thread has cancelled */ 136 /** waitStatus value to indicate successor's thread needs unparking */ 138 /** waitStatus value to indicate thread is waiting on condition * 214 volatile Thread thread; field in class:AbstractQueuedLongSynchronizer.Node [all...] |
| AbstractQueuedSynchronizer.java | 47 * waiting thread (if one exists) must also determine whether it can 58 * held with respect to the current thread, method {@link #release} 75 * thread queues. Typical subclasses requiring serializability will 96 * must be internally thread-safe, and should in general be short and 102 * AbstractOwnableSynchronizer} useful to keep track of the thread 114 * <em>enqueue thread if it is not already queued</em>; 115 * <em>possibly block current thread</em>; 120 * <em>unblock the first queued thread</em>; 126 * enqueuing, a newly acquiring thread may <em>barge</em> ahead of 132 * #getFirstQueuedThread} does not return the current thread. 445 volatile Thread thread; field in class:AbstractQueuedSynchronizer.Node [all...] |
| /libcore/luni/src/test/java/libcore/javax/net/ssl/ |
| SSLSocketTest.java | 274 Thread thread = new Thread(new Runnable () { local 299 thread.start(); 310 thread.join(); 324 Thread thread = new Thread(new Runnable () { local 336 thread.start(); 342 thread.join() 362 Thread thread = new Thread(new Runnable () { local 386 Thread thread = new Thread(new Runnable () { local 495 Thread thread = new Thread(new Runnable () { local 580 Thread thread = new Thread(new Runnable () { local 623 Thread thread = new Thread(new Runnable () { local 653 Thread thread = new Thread(new Runnable () { local 730 Thread thread = new Thread(new Runnable () { local 776 Thread thread = new Thread(new Runnable () { local 809 Thread thread = new Thread(new Runnable () { local [all...] |
| /bionic/libc/kernel/arch-x86/asm/ |
| i387_32.h | 22 #define restore_fpu(tsk) alternative_input( "nop ; frstor %1", "fxrstor %1", X86_FEATURE_FXSR, "m" ((tsk)->thread.i387.fxsave))
|
| /development/ndk/platforms/android-9/arch-x86/include/asm/ |
| i387_32.h | 22 #define restore_fpu(tsk) alternative_input( "nop ; frstor %1", "fxrstor %1", X86_FEATURE_FXSR, "m" ((tsk)->thread.i387.fxsave))
|
| /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ |
| ThreadGroupTest.java | 24 class MyThread extends Thread { 37 Thread.sleep(50); 52 Thread.yield(); 112 newGroup.getParent() == Thread.currentThread().getThreadGroup()); 140 Thread t1 = new Thread(tg, new Runnable() { 143 Thread.sleep(5000); 226 Thread noOp = new Thread(testRoot, null, "no-op thread") { 627 Thread thread; local [all...] |
| /external/chromium/net/test/ |
| test_server_win.cc | 18 #include "base/threading/thread.h" 99 base::Thread thread("test_server_watcher"); 100 if (!thread.Start()) 105 thread.message_loop()->PostDelayedTask( 125 thread.Stop();
|
| /external/chromium/third_party/libjingle/source/talk/examples/call/ |
| console.h | 33 #include "talk/base/thread.h" 41 Console(talk_base::Thread *thread, CallClient *client); 79 talk_base::Thread *client_thread_; 80 talk_base::scoped_ptr<talk_base::Thread> console_thread_;
|
| /external/chromium/third_party/libjingle/source/talk/session/phone/ |
| channelmanager.h | 36 #include "talk/base/thread.h" 47 // ChannelManager allows the MediaEngine to run on a separate thread, and takes 58 // Creates the channel manager, and specifies the worker thread to use. 59 explicit ChannelManager(talk_base::Thread* worker); 62 ChannelManager(MediaEngine* me, DeviceManager* dm, talk_base::Thread* worker); 65 // Accessors for the worker thread, allowing it to be set after construction, 67 talk_base::Thread* worker_thread() const { return worker_thread_; } 68 bool set_worker_thread(talk_base::Thread* thread) { 70 worker_thread_ = thread; [all...] |
| /external/kernel-headers/original/asm-x86/ |
| system_32.h | 31 :"=m" (prev->thread.esp),"=m" (prev->thread.eip), \ 33 :"m" (next->thread.esp),"m" (next->thread.eip), \
|