HomeSort by relevance Sort by last modified time
    Searched refs:thread (Results 51 - 75 of 627) sorted by null

1 23 4 5 6 7 8 91011>>

  /bionic/libc/kernel/arch-sh/asm/
system_32.h 20 #define switch_to(prev, next, last) do { register u32 *__ts1 __asm__ ("r1") = (u32 *)&prev->thread.sp; register u32 *__ts2 __asm__ ("r2") = (u32 *)&prev->thread.pc; register u32 *__ts4 __asm__ ("r4") = (u32 *)prev; register u32 *__ts5 __asm__ ("r5") = (u32 *)next; register u32 *__ts6 __asm__ ("r6") = (u32 *)&next->thread.sp; register u32 __ts7 __asm__ ("r7") = next->thread.pc; struct task_struct *__last; __asm__ __volatile__ ( ".balign 4\n\t" "stc.l gbr, @-r15\n\t" "sts.l pr, @-r15\n\t" "mov.l r8, @-r15\n\t" "mov.l r9, @-r15\n\t" "mov.l r10, @-r15\n\t" "mov.l r11, @-r15\n\t" "mov.l r12, @-r15\n\t" "mov.l r13, @-r15\n\t" "mov.l r14, @-r15\n\t" "mov.l r15, @r1\t! save SP\n\t" "mov.l @r6, r15\t! change to new stack\n\t" "mova 1f, %0\n\t" "mov.l %0, @r2\t! save PC\n\t" "mov.l 2f, %0\n\t" "jmp @%0\t! call __switch_to\n\t" " lds r7, pr\t! with return to new PC\n\t" ".balign 4\n" "2:\n\t" ".long __switch_to\n" "1:\n\t" "mov.l @r15+, r14\n\t" "mov.l @r15+, r13\n\t" "mov.l @r15+, r12\n\t" "mov.l @r15+, r11\n\t" "mov.l @r15+, r10\n\t" "mov.l @r15+, r9\n\t" "mov.l @r15+, r8\n\t" "lds.l @r15+, pr\n\t" "ldc.l @r15+, gbr\n\t" : "=z" (__last) : "r" (__ts1), "r" (__ts2), "r" (__ts4), "r" (__ts5), "r" (__ts6), "r" (__ts7) : "r3", "t"); last = __last; } while (0)
  /development/tools/emulator/opengl/host/libs/Translator/EGL/
ThreadInfo.cpp 35 __thread ThreadInfo* thread = NULL; variable
38 if(!thread) {
39 thread = new ThreadInfo();
41 return thread;
  /external/qemu/
qemu-thread.h 15 pthread_t thread; member in struct:QemuThread
36 void qemu_thread_create(QemuThread *thread,
39 void qemu_thread_signal(QemuThread *thread, int sig);
40 void qemu_thread_self(QemuThread *thread);
  /libcore/dalvik/src/main/java/dalvik/system/profiler/
SamplingProfiler.java 30 * Thread.getStackTrace} to collect samples. As such, the overhead is
38 * SamplingProfiler}. It samples the current thread's stack to a depth
44 * ThreadSet threadSet = SamplingProfiler.newArrayThreadSet(Thread.currentThread());
94 * Real hprof output examples don't start the thread and trace
105 * thread start and end events.
107 private Thread[] currentThreads = new Thread[0];
114 private final Map<Thread, Integer> threadIds = new HashMap<Thread, Integer>();
120 * be thread safe, have a single mutable instance would need to b
    [all...]
PortableThreadSampler.java 22 * ThreadSampler implementation that only uses Thread.getStackTrace()
33 @Override public StackTraceElement[] getStackTrace(Thread thread) {
34 StackTraceElement[] stackFrames = thread.getStackTrace();
  /dalvik/vm/interp/
Interp.h 41 void dvmInterpret(Thread* thread, const Method* method, JValue* pResult);
57 void dvmInitInterpreterState(Thread* self);
65 bool dvmAddSingleStep(Thread* thread, int size, int depth);
66 void dvmClearSingleStep(Thread* thread);
81 extern "C" void dvmCheckBefore(const u2 *dPC, u4 *fp, Thread* self);
82 extern "C" void dvmReportExceptionThrow(Thread* self, Object* exception);
83 extern "C" void dvmReportPreNativeInvoke(const Method* methodToCall, Thread* self, u4* fp)
    [all...]
  /external/valgrind/main/drd/tests/
pth_barrier_race.c 22 static void* thread(void* arg) function
35 pthread_create(&tid, NULL, thread, NULL);
40 * happens after the created thread has returned from pthread_barrier_wait().
  /external/webkit/Source/JavaScriptCore/wtf/qt/
MainThreadQt.cpp 51 moveToThread(QCoreApplication::instance()->thread());
72 return QThread::currentThread() == QCoreApplication::instance()->thread();
ThreadingQt.cpp 99 static ThreadIdentifier identifierByQthreadHandle(QThread*& thread)
105 if (i->second == thread)
112 static ThreadIdentifier establishIdentifierForThread(QThread*& thread)
114 ASSERT(!identifierByQthreadHandle(thread));
120 threadMap().add(identifierCount, thread);
163 ThreadPrivate* thread = new ThreadPrivate(entryPoint, data); local
164 if (!thread) {
165 LOG_ERROR("Failed to create thread at entry point %p with data %p", entryPoint, data);
169 QObject::connect(thread, SIGNAL(finished()), ThreadMonitor::instance(), SLOT(threadFinished()));
171 thread->start()
186 QThread* thread = threadForIdentifier(threadID); local
    [all...]
  /system/extras/tests/bionic/libc/common/
test_clock.c 25 // this thread soaks the CPU so that clock() function will advance
36 pthread_t thread; local
42 pthread_create(&thread, NULL, cpu_hog, NULL);
54 // exit could wait for the other thread to complete
  /development/tools/emulator/opengl/tests/ut_renderer/
Renderer.h 42 int createSurface(RenderingThread *thread, const ClientHandle & handle);
43 int destroySurface(RenderingThread *thread, const ClientHandle &handle);
44 int createContext(RenderingThread *thread, const ClientHandle & ctx, const ClientHandle shareCtx, int version);
45 int destroyContext(RenderingThread *thread,const ClientHandle & ctx);
46 int makeCurrent(RenderingThread *thread,
48 int swapBuffers(RenderingThread *thread, const ClientHandle & surface);
  /external/webkit/Source/WebCore/workers/
DedicatedWorkerContext.cpp 44 DedicatedWorkerContext::DedicatedWorkerContext(const KURL& url, const String& userAgent, DedicatedWorkerThread* thread)
45 : WorkerContext(url, userAgent, thread)
69 thread()->workerObjectProxy().postMessageToWorkerObject(message, channels.release());
75 thread()->workerObjectProxy().reportPendingActivity(hasPendingActivity());
78 DedicatedWorkerThread* DedicatedWorkerContext::thread() function in class:WebCore::DedicatedWorkerContext
80 return static_cast<DedicatedWorkerThread*>(Base::thread());
  /external/qemu/distrib/sdl-1.2.12/src/thread/amigaos/
SDL_systhread.c 24 /* BeOS thread management routines for SDL */
63 D(bug("Thread with data %lx ended\n",data));
82 D(bug("Thread with data %lx ended\n",data));
97 int SDL_SYS_CreateThread(SDL_Thread *thread, void *args)
99 /* Create the thread and go! */
102 D(bug("Sending %lx to the new thread...\n",args));
108 thread->handle=CreateTaskPPCTags(TASKATTR_CODE, RunThread,
115 thread->handle=(struct Task *)CreateNewProcTags(NP_Output,Output(),
124 if(!thread->handle)
126 SDL_SetError("Not enough resources to create thread");
    [all...]
  /bionic/libc/bionic/
pthread.c 114 pthread_internal_t* thread; local
116 thread = calloc( sizeof(*thread), 1 );
117 if (thread)
118 thread->intern = 1;
120 return thread;
124 _pthread_internal_free( pthread_internal_t* thread )
126 if (thread && thread->intern) {
127 thread->intern = 0; /* just in case *
172 pthread_internal_t* thread = __get_thread(); local
306 pthread_internal_t * thread; local
519 pthread_internal_t * thread = (pthread_internal_t *)thid; local
548 pthread_internal_t* thread = __get_thread(); local
558 pthread_internal_t* thread = __get_thread(); local
570 pthread_internal_t* thread = __get_thread(); local
625 pthread_internal_t* thread = (pthread_internal_t*)thid; local
673 pthread_internal_t* thread; local
717 pthread_internal_t * thread = (pthread_internal_t *)thid; local
731 pthread_internal_t * thread = (pthread_internal_t *)thid; local
1848 pthread_internal_t * thread = (pthread_internal_t *)tid; local
1886 pthread_internal_t* thread = (pthread_internal_t*)tid; local
1942 pthread_internal_t *thread = (pthread_internal_t *)thid; local
1977 pthread_internal_t* thread = (pthread_internal_t*)thid; local
    [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...]
  /libcore/luni/src/test/java/libcore/java/util/logging/
OldLogRecordTest.java 33 Thread.sleep(2);
52 // Create and start the thread
53 MockThread thread = new MockThread(); local
54 thread.start();
56 thread.join();
70 assertTrue(lr.getThreadID() != thread.lr.getThreadID());
72 assertTrue(thread.lr.getThreadID() != thread2.lr.getThreadID());
75 public class MockThread extends Thread {
76 public LogRecord lr = null; //will be update by the thread
83 lr = new LogRecord(Level.CONFIG, "msg thread");
    [all...]
  /dalvik/vm/native/
dalvik_system_VMStack.cpp 130 * Return a trace buffer for the specified thread or NULL if the
131 * thread is not still alive. *depth is set to the length of a
137 Thread* self = dvmThreadSelf();
138 Thread* thread; local
146 * Make sure the thread is still alive and in the list.
148 for (thread = gDvm.threadList; thread != NULL; thread = thread->next)
    [all...]
  /external/chromium/third_party/libjingle/source/talk/examples/login/
login_main.cc 31 #include "talk/base/thread.h"
44 // Start xmpp on a different thread
45 XmppThread thread; local
46 thread.Start();
54 thread.Login(xcs);
56 // Use main thread for console input
  /libcore/luni/src/main/java/java/lang/
Daemons.java 55 private Thread thread; field in class:Daemons.Daemon
58 if (thread != null) {
61 thread = new Thread(this, getClass().getSimpleName());
62 thread.setDaemon(true);
63 thread.start();
69 * Returns true while the current thread should continue to run; false
73 return thread != null;
77 if (thread == null)
    [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/lang/
OldInheritableThreadLocalTest.java 38 Thread thread = new Thread() { local
43 thread.start();
44 thread.join();
  /external/valgrind/main/memcheck/tests/
supp_unknown.stderr.exp 7 overflow in your program's main thread (unlikely but
9 main thread stack using the --main-stacksize= flag.
10 The main thread stack size used in this run was ....
  /external/valgrind/main/none/tests/linux/
blockfault.stderr.exp 7 overflow in your program's main thread (unlikely but
9 main thread stack using the --main-stacksize= flag.
10 The main thread stack size used in this run was ....
  /frameworks/base/core/tests/coretests/src/android/content/
ContentQueryMapTest.java 34 /** Helper class to run test code in a new thread with a Looper. */
35 private abstract class LooperThread extends Thread {
54 LooperThread thread = new LooperThread() { local
99 thread.start();
100 thread.join();
101 if (thread.mError != null) throw thread.mError;
102 assertTrue(thread.mSuccess);
  /dalvik/hit/src/com/android/hit/
StackTrace.java 37 public StackTrace(int serial, int thread, StackFrame[] frames) {
39 mThreadSerialNumber = thread;

Completed in 1429 milliseconds

1 23 4 5 6 7 8 91011>>