/external/qemu/distrib/sdl-1.2.12/src/thread/ |
D | SDL_thread.c | 70 static void SDL_AddThread(SDL_Thread *thread) in SDL_AddThread() argument 101 SDL_Threads[SDL_numthreads++] = thread; in SDL_AddThread() 106 static void SDL_DelThread(SDL_Thread *thread) in SDL_DelThread() argument 115 if ( thread == SDL_Threads[i] ) { in SDL_DelThread() 212 SDL_Thread *thread; in SDL_CreateThread() local 217 thread = (SDL_Thread *)SDL_malloc(sizeof(*thread)); in SDL_CreateThread() 218 if ( thread == NULL ) { in SDL_CreateThread() 222 SDL_memset(thread, 0, (sizeof *thread)); in SDL_CreateThread() 223 thread->status = -1; in SDL_CreateThread() 229 SDL_free(thread); in SDL_CreateThread() [all …]
|
/external/qemu/distrib/sdl-1.2.12/src/thread/amigaos/ |
D | SDL_thread.c | 60 static void SDL_AddThread(SDL_Thread *thread) in SDL_AddThread() argument 96 SDL_Threads[SDL_numthreads++] = thread; in SDL_AddThread() 101 static void SDL_DelThread(SDL_Thread *thread) in SDL_DelThread() argument 108 if ( thread == SDL_Threads[i] ) { in SDL_DelThread() 192 SDL_Thread *thread; in SDL_CreateThread() local 197 thread = (SDL_Thread *)SDL_malloc(sizeof(*thread)); in SDL_CreateThread() 198 if ( thread == NULL ) { in SDL_CreateThread() 202 SDL_memset(thread, 0, (sizeof *thread)); in SDL_CreateThread() 203 thread->status = -1; in SDL_CreateThread() 209 SDL_free(thread); in SDL_CreateThread() [all …]
|
D | SDL_systhread.c | 97 int SDL_SYS_CreateThread(SDL_Thread *thread, void *args) in SDL_SYS_CreateThread() argument 108 thread->handle=CreateTaskPPCTags(TASKATTR_CODE, RunThread, in SDL_SYS_CreateThread() 115 thread->handle=(struct Task *)CreateNewProcTags(NP_Output,Output(), in SDL_SYS_CreateThread() 124 if(!thread->handle) in SDL_SYS_CreateThread() 142 void SDL_SYS_WaitThread(SDL_Thread *thread) in SDL_SYS_WaitThread() argument 148 void SDL_SYS_KillThread(SDL_Thread *thread) in SDL_SYS_KillThread() argument 150 Signal((struct Task *)thread->handle,SIGBREAKF_CTRL_C); in SDL_SYS_KillThread()
|
/external/qemu/memcheck/ |
D | memcheck_proc_management.c | 182 ThreadDesc* thread; in get_thread_from_tid() local 191 QLIST_FOREACH(thread, &thread_list, global_entry) { in get_thread_from_tid() 192 if (tid == thread->tid) { in get_thread_from_tid() 194 current_thread = thread; in get_thread_from_tid() 196 return thread; in get_thread_from_tid() 215 ThreadDesc* thread; in get_current_thread() local 216 QLIST_FOREACH(thread, &thread_list, global_entry) { in get_current_thread() 217 if (current_tid == thread->tid) { in get_current_thread() 218 current_thread = thread; in get_current_thread() 236 const ThreadDesc* thread = get_thread_from_tid(tid); in get_process_from_tid() local [all …]
|
/external/bluetooth/glib/glib/ |
D | gthread.c | 69 GThread thread; member 501 GRealThread *thread; in g_static_private_free() local 510 thread = g_thread_all_threads; in g_static_private_free() 511 while (thread) in g_static_private_free() 513 GArray *array = thread->private_data; in g_static_private_free() 514 thread = thread->next; in g_static_private_free() 545 GRealThread* thread = data; in g_thread_cleanup() local 546 if (thread->private_data) in g_thread_cleanup() 548 GArray* array = thread->private_data; in g_thread_cleanup() 563 if (!thread->thread.joinable) in g_thread_cleanup() [all …]
|
/external/chromium/base/ |
D | simple_thread_unittest.cc | 84 base::DelegateSimpleThread thread(&runner, "int_setter"); in TEST() local 85 EXPECT_FALSE(thread.HasBeenStarted()); in TEST() 86 EXPECT_FALSE(thread.HasBeenJoined()); in TEST() 89 thread.Start(); in TEST() 90 EXPECT_TRUE(thread.HasBeenStarted()); in TEST() 91 EXPECT_FALSE(thread.HasBeenJoined()); in TEST() 93 thread.Join(); in TEST() 94 EXPECT_TRUE(thread.HasBeenStarted()); in TEST() 95 EXPECT_TRUE(thread.HasBeenJoined()); in TEST() 104 base::DelegateSimpleThread thread(&runner, "event_waiter"); in TEST() local [all …]
|
/external/webkit/JavaScriptCore/wtf/qt/ |
D | ThreadingQt.cpp | 101 static ThreadIdentifier identifierByQthreadHandle(QThread*& thread) in identifierByQthreadHandle() argument 107 if (i->second == thread) in identifierByQthreadHandle() 114 static ThreadIdentifier establishIdentifierForThread(QThread*& thread) in establishIdentifierForThread() argument 116 ASSERT(!identifierByQthreadHandle(thread)); in establishIdentifierForThread() 122 threadMap().add(identifierCount, thread); in establishIdentifierForThread() 149 QThread* mainThread = QCoreApplication::instance()->thread(); in initializeThreading() 170 ThreadPrivate* thread = new ThreadPrivate(entryPoint, data); in createThreadInternal() local 171 if (!thread) { in createThreadInternal() 176 QObject::connect(thread, SIGNAL(finished()), ThreadMonitor::instance(), SLOT(threadFinished())); in createThreadInternal() 178 thread->start(); in createThreadInternal() [all …]
|
/external/qemu/distrib/sdl-1.2.12/src/thread/riscos/ |
D | SDL_systhread.c | 31 int SDL_SYS_CreateThread(SDL_Thread *thread, void *args) in SDL_SYS_CreateThread() argument 47 void SDL_SYS_WaitThread(SDL_Thread *thread) in SDL_SYS_WaitThread() argument 52 void SDL_SYS_KillThread(SDL_Thread *thread) in SDL_SYS_KillThread() argument 79 int SDL_SYS_CreateThread(SDL_Thread *thread, void *args) in SDL_SYS_CreateThread() argument 91 if ( pthread_create(&thread->handle, &type, RunThread, args) != 0 ) { in SDL_SYS_CreateThread() 130 void SDL_SYS_WaitThread(SDL_Thread *thread) in SDL_SYS_WaitThread() argument 132 pthread_join(thread->handle, 0); in SDL_SYS_WaitThread() 135 void SDL_SYS_KillThread(SDL_Thread *thread) in SDL_SYS_KillThread() argument 138 pthread_cancel(thread->handle); in SDL_SYS_KillThread() 140 pthread_kill(thread->handle, SIGKILL); in SDL_SYS_KillThread()
|
/external/qemu/distrib/sdl-1.2.12/src/thread/beos/ |
D | SDL_systhread.c | 62 int SDL_SYS_CreateThread(SDL_Thread *thread, void *args) in SDL_SYS_CreateThread() argument 65 thread->handle=spawn_thread(RunThread, "SDL", B_NORMAL_PRIORITY, args); in SDL_SYS_CreateThread() 66 if ( (thread->handle == B_NO_MORE_THREADS) || in SDL_SYS_CreateThread() 67 (thread->handle == B_NO_MEMORY) ) { in SDL_SYS_CreateThread() 71 resume_thread(thread->handle); in SDL_SYS_CreateThread() 86 void SDL_SYS_WaitThread(SDL_Thread *thread) in SDL_SYS_WaitThread() argument 90 wait_for_thread(thread->handle, &the_status); in SDL_SYS_WaitThread() 93 void SDL_SYS_KillThread(SDL_Thread *thread) in SDL_SYS_KillThread() argument 95 kill_thread(thread->handle); in SDL_SYS_KillThread()
|
/external/qemu/distrib/sdl-1.2.12/src/thread/win32/ |
D | SDL_systhread.c | 89 int SDL_SYS_CreateThread(SDL_Thread *thread, void *args, pfnSDL_CurrentBeginThread pfnBeginThread, … argument 92 int SDL_SYS_CreateThread(SDL_Thread *thread, void *args) 115 thread->handle = (SYS_ThreadHandle) pfnBeginThread(NULL, 0, RunThread, 118 thread->handle = CreateThread(NULL, 0, RunThread, pThreadParms, 0, &threadid); 120 if (thread->handle == NULL) { 137 void SDL_SYS_WaitThread(SDL_Thread *thread) argument 139 WaitForSingleObject(thread->handle, INFINITE); 140 CloseHandle(thread->handle); 147 void SDL_SYS_KillThread(SDL_Thread *thread) argument 149 TerminateThread(thread->handle, FALSE);
|
/external/qemu/ |
D | qemu-thread.c | 134 void qemu_thread_create(QemuThread *thread, in qemu_thread_create() argument 140 err = pthread_create(&thread->thread, NULL, start_routine, arg); in qemu_thread_create() 145 void qemu_thread_signal(QemuThread *thread, int sig) in qemu_thread_signal() argument 149 err = pthread_kill(thread->thread, sig); in qemu_thread_signal() 154 void qemu_thread_self(QemuThread *thread) in qemu_thread_self() argument 156 thread->thread = pthread_self(); in qemu_thread_self() 161 return pthread_equal(thread1->thread, thread2->thread); in qemu_thread_equal()
|
/external/qemu/distrib/sdl-1.2.12/src/thread/dc/ |
D | SDL_systhread.c | 32 int SDL_SYS_CreateThread(SDL_Thread *thread, void *args) in SDL_SYS_CreateThread() argument 34 thread->handle = thd_create(SDL_RunThread,args); in SDL_SYS_CreateThread() 35 if (thread->handle == NULL) { in SDL_SYS_CreateThread() 52 void SDL_SYS_WaitThread(SDL_Thread *thread) in SDL_SYS_WaitThread() argument 54 thd_wait(thread->handle); in SDL_SYS_WaitThread() 57 void SDL_SYS_KillThread(SDL_Thread *thread) in SDL_SYS_KillThread() argument 59 thd_destroy(thread->handle); in SDL_SYS_KillThread()
|
/external/qemu/distrib/sdl-1.2.12/src/thread/pth/ |
D | SDL_systhread.c | 50 int SDL_SYS_CreateThread(SDL_Thread *thread, void *args) in SDL_SYS_CreateThread() argument 63 thread->handle = pth_spawn(type, RunThread, args); in SDL_SYS_CreateThread() 64 if ( thread->handle == NULL ) { in SDL_SYS_CreateThread() 94 void SDL_SYS_WaitThread(SDL_Thread *thread) in SDL_SYS_WaitThread() argument 96 pth_join(thread->handle, NULL); in SDL_SYS_WaitThread() 99 void SDL_SYS_KillThread(SDL_Thread *thread) in SDL_SYS_KillThread() argument 101 pth_cancel(thread->handle); in SDL_SYS_KillThread() 102 pth_join(thread->handle, NULL); in SDL_SYS_KillThread()
|
/external/qemu/distrib/sdl-1.2.12/src/thread/os2/ |
D | SDL_systhread.c | 60 int SDL_SYS_CreateThread(SDL_Thread *thread, void *args, pfnSDL_CurrentBeginThread pfnBeginThread, … in SDL_SYS_CreateThread() argument 74 thread->threadid = thread->handle = (*pfnBeginThread)(threadfunc, NULL, 512*1024, pThreadParms); in SDL_SYS_CreateThread() 75 if ((int)thread->threadid <= 0) in SDL_SYS_CreateThread() 95 void SDL_SYS_WaitThread(SDL_Thread *thread) in SDL_SYS_WaitThread() argument 97 TID tid = thread->handle; in SDL_SYS_WaitThread() 105 void SDL_SYS_KillThread(SDL_Thread *thread) in SDL_SYS_KillThread() argument 107 DosKillThread(thread->handle); in SDL_SYS_KillThread()
|
/external/nist-sip/java/gov/nist/core/ |
D | ThreadAuditor.java | 36 private Thread thread; field in ThreadAuditor.ThreadHandle 44 thread = Thread.currentThread(); in ThreadHandle() 60 return thread; in getThread() 80 .append("Thread Name: ").append(thread.getName()) in toString() 81 .append(", Alive: ").append(thread.isAlive()); in toString() 113 public synchronized void removeThread(Thread thread) { in removeThread() argument 114 threadHandles.remove(thread); in removeThread() 142 Thread thread = threadHandle.getThread(); in auditThreads() local 148 …auditReport += " Thread [" + thread.getName() + "] has failed to respond to an audit request.\n"; in auditThreads()
|
/external/qemu/distrib/sdl-1.2.12/src/thread/pthread/ |
D | SDL_systhread.c | 52 int SDL_SYS_CreateThread(SDL_Thread *thread, void *args) in SDL_SYS_CreateThread() argument 64 if ( pthread_create(&thread->handle, &type, RunThread, args) != 0 ) { in SDL_SYS_CreateThread() 105 void SDL_SYS_WaitThread(SDL_Thread *thread) in SDL_SYS_WaitThread() argument 107 pthread_join(thread->handle, 0); in SDL_SYS_WaitThread() 110 void SDL_SYS_KillThread(SDL_Thread *thread) in SDL_SYS_KillThread() argument 113 pthread_cancel(thread->handle); in SDL_SYS_KillThread() 116 #warning For some reason, this doesnt actually kill a thread - FreeBSD 3.2 in SDL_SYS_KillThread() 118 pthread_kill(thread->handle, SIGKILL); in SDL_SYS_KillThread()
|
/external/qemu/distrib/sdl-1.2.12/src/thread/epoc/ |
D | SDL_systhread.cpp | 75 int SDL_SYS_CreateThread(SDL_Thread *thread, void *args) in SDL_SYS_CreateThread() argument 82 delete(((RThread*)(thread->handle))); in SDL_SYS_CreateThread() 83 thread->handle = NULL; in SDL_SYS_CreateThread() 88 thread->handle = rthread.Handle(); in SDL_SYS_CreateThread() 104 void SDL_SYS_WaitThread(SDL_Thread *thread) in SDL_SYS_WaitThread() argument 109 taker.Logon(status, thread->handle); in SDL_SYS_WaitThread() 118 void SDL_SYS_KillThread(SDL_Thread *thread) in SDL_SYS_KillThread() argument 121 rthread.SetHandle(thread->handle); in SDL_SYS_KillThread()
|
/external/webkit/JavaScriptCore/wtf/gtk/ |
D | ThreadingGtk.cpp | 87 static ThreadIdentifier identifierByGthreadHandle(GThread*& thread) in identifierByGthreadHandle() argument 93 if (i->second == thread) in identifierByGthreadHandle() 100 static ThreadIdentifier establishIdentifierForThread(GThread*& thread) in establishIdentifierForThread() argument 102 ASSERT(!identifierByGthreadHandle(thread)); in establishIdentifierForThread() 108 threadMap().add(identifierCount, thread); in establishIdentifierForThread() 131 GThread* thread; in createThreadInternal() local 132 if (!(thread = g_thread_create(entryPoint, data, TRUE, 0))) { in createThreadInternal() 137 ThreadIdentifier threadID = establishIdentifierForThread(thread); in createThreadInternal() 149 GThread* thread = threadForIdentifier(threadID); in waitForThreadCompletion() local 151 void* joinResult = g_thread_join(thread); in waitForThreadCompletion()
|
/external/libvpx/vp8/common/ |
D | threading.h | 29 #define pthread_join(thread, result) ((WaitForSingleObject((thread),VPXINFINITE)!=WAIT_OBJECT_0) ||… argument 30 #define pthread_detach(thread) if(thread!=NULL)CloseHandle(thread) argument 32 #define pthread_cancel(thread) terminate_thread(thread,0) argument
|
/external/bluetooth/glib/tests/refcount/ |
D | objects.c | 133 GThread *thread; in main() local 135 thread = g_thread_create ((GThreadFunc) run_thread, test1, TRUE, NULL); in main() 136 g_array_append_val (test_threads, thread); in main() 138 thread = g_thread_create ((GThreadFunc) run_thread, test2, TRUE, NULL); in main() 139 g_array_append_val (test_threads, thread); in main() 149 GThread *thread; in main() local 151 thread = g_array_index (test_threads, GThread *, i); in main() 152 g_thread_join (thread); in main()
|
/external/bluetooth/glib/gthread/ |
D | gthread-win32.c | 87 HANDLE thread; member 380 g_thread_set_priority_win32_impl (gpointer thread, GThreadPriority priority) in g_thread_set_priority_win32_impl() argument 382 GThreadData *target = *(GThreadData **)thread; in g_thread_set_priority_win32_impl() 387 win32_check_for_error (SetThreadPriority (target->thread, in g_thread_set_priority_win32_impl() 392 g_thread_self_win32_impl (gpointer thread) in g_thread_self_win32_impl() argument 403 &self->thread, 0, FALSE, in g_thread_self_win32_impl() 411 *(GThreadData **)thread = self; in g_thread_self_win32_impl() 456 win32_check_for_error (CloseHandle (self->thread)); in g_thread_exit_win32_impl() 494 gpointer thread, in g_thread_create_win32_impl() argument 510 retval->thread = (HANDLE) _beginthreadex (NULL, stack_size, g_thread_proxy, in g_thread_create_win32_impl() [all …]
|
D | gthread-posix.c | 145 pthread_getprio (*(pthread_t*)thread, in g_thread_impl_init() 308 gpointer thread, in g_thread_create_posix_impl() argument 355 ret = posix_error (pthread_create (thread, &attr, in g_thread_create_posix_impl() 371 posix_check_cmd (pthread_detach (thread)); in g_thread_create_posix_impl() 382 g_thread_join_posix_impl (gpointer thread) in g_thread_join_posix_impl() argument 385 posix_check_cmd (pthread_join (*(pthread_t*)thread, &ignore)); in g_thread_join_posix_impl() 395 g_thread_set_priority_posix_impl (gpointer thread, GThreadPriority priority) in g_thread_set_priority_posix_impl() argument 404 posix_check_cmd (pthread_getschedparam (*(pthread_t*)thread, &policy, in g_thread_set_priority_posix_impl() 407 posix_check_cmd_prio (pthread_setschedparam (*(pthread_t*)thread, policy, in g_thread_set_priority_posix_impl() 411 posix_check_cmd_prio (pthread_setprio (*(pthread_t*)thread, in g_thread_set_priority_posix_impl() [all …]
|
/external/webkit/WebCore/workers/ |
D | DedicatedWorkerContext.cpp | 44 …xt::DedicatedWorkerContext(const KURL& url, const String& userAgent, DedicatedWorkerThread* thread) in DedicatedWorkerContext() argument 45 : WorkerContext(url, userAgent, thread) in DedicatedWorkerContext() 71 thread()->workerObjectProxy().postMessageToWorkerObject(message, channels.release()); in postMessage() 77 thread()->workerObjectProxy().reportPendingActivity(hasPendingActivity()); in importScripts() 80 DedicatedWorkerThread* DedicatedWorkerContext::thread() in thread() function in WebCore::DedicatedWorkerContext 82 return static_cast<DedicatedWorkerThread*>(Base::thread()); in thread()
|
/external/webkit/JavaScriptCore/runtime/ |
D | Collector.cpp | 542 pthread_t thread = pthread_self(); in currentThreadStackBaseQNX() local 543 if (stackBase == 0 || thread != stackThread) { in currentThreadStackBaseQNX() 557 stackThread = thread; in currentThreadStackBaseQNX() 566 pthread_t thread = pthread_self(); in currentThreadStackBase() local 567 return pthread_get_stackaddr_np(thread); in currentThreadStackBase() 596 pthread_t thread = pthread_self(); in currentThreadStackBase() 598 pthread_stackseg_np(thread, &stack); in currentThreadStackBase() 604 RThread thread; in currentThreadStackBase() 605 thread.StackInfo(info); in currentThreadStackBase() 617 pthread_t thread = pthread_self(); in currentThreadStackBase() [all …]
|
/external/qemu/distrib/sdl-1.2.12/src/thread/irix/ |
D | SDL_systhread.c | 42 int SDL_SYS_CreateThread(SDL_Thread *thread, void *args) in SDL_SYS_CreateThread() argument 72 void SDL_WaitThread(SDL_Thread *thread, int *status) in SDL_WaitThread() argument 76 waitpid(thread->handle, NULL, 0); in SDL_WaitThread() 81 void SDL_KillThread(SDL_Thread *thread) in SDL_KillThread() argument 83 kill(thread->handle, SIGKILL); in SDL_KillThread()
|