/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ |
D | ThreadTest.java | 20 import java.lang.Thread.UncaughtExceptionHandler; 64 Thread parent; 76 Thread.sleep(100); in run() 83 Thread.sleep(500); in run() 87 while (!Thread.currentThread().isInterrupted()) { in run() 90 Thread.sleep(50); in run() 103 public ResSupThread(Thread t) { in ResSupThread() 121 Thread st, ct, spinner; 128 ct = new Thread(new SimpleThread(10)); in test_ConstructorLjava_lang_Runnable() 138 Thread st1 = new Thread(new SimpleThread(1), "SimpleThread1"); in test_ConstructorLjava_lang_RunnableLjava_lang_String() [all …]
|
D | ThreadGroupTest.java | 24 class MyThread extends Thread { 37 Thread.sleep(50); in run() 52 Thread.yield(); in isActivelyRunning() 112 newGroup.getParent() == Thread.currentThread().getThreadGroup()); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_String() 140 Thread t1 = new Thread(tg, new Runnable() { in test_activeCount() 143 Thread.sleep(5000); in test_activeCount() 226 Thread noOp = new Thread(testRoot, null, "no-op thread") { in test_destroy() 253 noOp = new Thread(testRoot, null, "no-op thread") { in test_destroy() 257 Thread.sleep(500); in test_destroy() 302 new Thread(group1, "test_destroy_subtest0"); in test_destroy_subtest0() [all …]
|
/external/chromium/net/base/ |
D | network_change_notifier_linux.cc | 25 class NetworkChangeNotifierLinux::Thread class in net::NetworkChangeNotifierLinux 26 : public base::Thread, public MessageLoopForIO::Watcher { 28 Thread(); 29 virtual ~Thread(); 59 ScopedRunnableMethodFactory<Thread> method_factory_; 61 DISALLOW_COPY_AND_ASSIGN(Thread); 64 NetworkChangeNotifierLinux::Thread::Thread() in Thread() function in net::NetworkChangeNotifierLinux::Thread 65 : base::Thread("NetworkChangeNotifier"), in Thread() 69 NetworkChangeNotifierLinux::Thread::~Thread() {} in ~Thread() 71 void NetworkChangeNotifierLinux::Thread::Init() { in Init() [all …]
|
/external/chromium/third_party/libjingle/source/talk/base/ |
D | thread.h | 48 class Thread; variable 55 static Thread *CurrentThread(); 56 static void SetCurrent(Thread *thread); 57 void Add(Thread *thread); 58 void Remove(Thread *thread); 73 static Thread *WrapCurrentThread(); 79 Thread *main_thread_; 80 std::vector<Thread *> threads_; 92 class Thread; variable 96 Thread *thread; [all …]
|
D | thread.cc | 76 Thread *ThreadManager::CurrentThread() { in CurrentThread() 77 return static_cast<Thread *>(pthread_getspecific(key_)); in CurrentThread() 80 void ThreadManager::SetCurrent(Thread *thread) { in SetCurrent() 98 Thread *ThreadManager::CurrentThread() { in CurrentThread() 99 return static_cast<Thread *>(TlsGetValue(key_)); in CurrentThread() 102 void ThreadManager::SetCurrent(Thread *thread) { in SetCurrent() 108 Thread *ThreadManager::WrapCurrentThread() { in WrapCurrentThread() 109 Thread* result = CurrentThread(); in WrapCurrentThread() 111 result = new Thread(); in WrapCurrentThread() 131 Thread* t = CurrentThread(); in UnwrapCurrentThread() [all …]
|
/external/chromium_org/net/base/ |
D | network_change_notifier_linux.cc | 15 class NetworkChangeNotifierLinux::Thread : public base::Thread { class in net::NetworkChangeNotifierLinux 17 Thread(); 18 virtual ~Thread(); 40 DISALLOW_COPY_AND_ASSIGN(Thread); 43 NetworkChangeNotifierLinux::Thread::Thread() in Thread() function in net::NetworkChangeNotifierLinux::Thread 44 : base::Thread("NetworkChangeNotifier"), in Thread() 52 NetworkChangeNotifierLinux::Thread::~Thread() { in ~Thread() 53 DCHECK(!Thread::IsRunning()); in ~Thread() 56 void NetworkChangeNotifierLinux::Thread::Init() { in Init() 63 void NetworkChangeNotifierLinux::Thread::CleanUp() { in CleanUp() [all …]
|
/external/chromium_org/third_party/libjingle/source/talk/base/ |
D | signalthread_unittest.cc | 42 EXPECT_EQ(harness_->main_thread_, Thread::Current()); in ~SlowSignalThread() 52 EXPECT_EQ(harness_->main_thread_, Thread::Current()); in OnWorkStart() 58 EXPECT_EQ(harness_->main_thread_, Thread::Current()); in OnWorkStop() 64 EXPECT_EQ(harness_->main_thread_, Thread::Current()); in OnWorkDone() 69 EXPECT_NE(harness_->main_thread_, Thread::Current()); in DoWork() 70 EXPECT_EQ(worker(), Thread::Current()); in DoWork() 71 Thread::Current()->socketserver()->Wait(250, false); in DoWork() 82 EXPECT_EQ(main_thread_, Thread::Current()); in OnWorkComplete() 91 main_thread_ = Thread::Current(); in SetUp() 105 Thread* main_thread_; [all …]
|
D | thread.cc | 58 Thread* Thread::Current() { in Current() 92 Thread *ThreadManager::CurrentThread() { in CurrentThread() 93 return static_cast<Thread *>(pthread_getspecific(key_)); in CurrentThread() 96 void ThreadManager::SetCurrentThread(Thread *thread) { in SetCurrentThread() 114 Thread *ThreadManager::CurrentThread() { in CurrentThread() 115 return static_cast<Thread *>(TlsGetValue(key_)); in CurrentThread() 118 void ThreadManager::SetCurrentThread(Thread *thread) { in SetCurrentThread() 123 Thread *ThreadManager::WrapCurrentThread() { in WrapCurrentThread() 124 Thread* result = CurrentThread(); in WrapCurrentThread() 126 result = new Thread(); in WrapCurrentThread() [all …]
|
D | thread_unittest.cc | 70 Thread* post_thread, MessageHandler* phandler) in SocketClient() 96 Thread* post_thread_; 103 MessageClient(Thread* pth, Socket* socket) in MessageClient() 119 Thread* thread_; 123 class CustomThread : public talk_base::Thread { 133 class SignalWhenDestroyedThread : public Thread { 169 Thread th1; in TEST() 175 Thread th2; in TEST() 190 Thread* th_main = Thread::Current(); in TEST() 210 Thread *thread; in TEST() [all …]
|
D | thread.h | 48 class Thread; variable 57 Thread* CurrentThread(); 58 void SetCurrentThread(Thread* thread); 73 Thread *WrapCurrentThread(); 90 Thread *thread; 105 virtual void Run(Thread* thread) = 0; 116 class Thread : public MessageQueue { 118 explicit Thread(SocketServer* ss = NULL); 123 virtual ~Thread(); 125 static Thread* Current(); [all …]
|
/external/chromium_org/base/threading/ |
D | thread.cc | 35 Thread::SetThreadWasQuitProperly(true); in ThreadQuitHelper() 40 struct Thread::StartupData { 42 const Thread::Options& options; 52 Thread::Options::Options() in Options() 57 Thread::Options::Options(MessageLoop::Type type, in Options() 63 Thread::Options::~Options() { in ~Options() 66 Thread::Thread(const char* name) in Thread() function in base::Thread 81 Thread::~Thread() { in ~Thread() 85 bool Thread::Start() { in Start() 94 bool Thread::StartWithOptions(const Options& options) { in StartWithOptions() [all …]
|
/external/chromium_org/v8/test/cctest/ |
D | test-platform-tls.cc | 36 using v8::internal::Thread; 40 static Thread::LocalStorageKey keys[kValueCount]; 49 CHECK(!Thread::HasThreadLocal(keys[i])); in DoTest() 52 Thread::SetThreadLocal(keys[i], GetValue(i)); in DoTest() 55 CHECK(Thread::HasThreadLocal(keys[i])); in DoTest() 58 CHECK_EQ(GetValue(i), Thread::GetThreadLocal(keys[i])); in DoTest() 59 CHECK_EQ(GetValue(i), Thread::GetExistingThreadLocal(keys[i])); in DoTest() 62 Thread::SetThreadLocal(keys[i], GetValue(kValueCount - i - 1)); in DoTest() 65 CHECK(Thread::HasThreadLocal(keys[i])); in DoTest() 69 Thread::GetThreadLocal(keys[i])); in DoTest() [all …]
|
/external/v8/test/cctest/ |
D | test-platform-tls.cc | 11 using v8::internal::Thread; 15 static Thread::LocalStorageKey keys[kValueCount]; 23 CHECK(!Thread::HasThreadLocal(keys[i])); in DoTest() 26 Thread::SetThreadLocal(keys[i], GetValue(i)); in DoTest() 29 CHECK(Thread::HasThreadLocal(keys[i])); in DoTest() 32 CHECK_EQ(GetValue(i), Thread::GetThreadLocal(keys[i])); in DoTest() 33 CHECK_EQ(GetValue(i), Thread::GetExistingThreadLocal(keys[i])); in DoTest() 36 Thread::SetThreadLocal(keys[i], GetValue(kValueCount - i - 1)); in DoTest() 39 CHECK(Thread::HasThreadLocal(keys[i])); in DoTest() 43 Thread::GetThreadLocal(keys[i])); in DoTest() [all …]
|
/external/chromium/base/threading/ |
D | thread.cc | 30 Thread::SetThreadWasQuitProperly(true); in Run() 36 struct Thread::StartupData { 38 const Thread::Options& options; 48 Thread::Thread(const char* name) in Thread() function in base::Thread 58 Thread::~Thread() { in ~Thread() 62 bool Thread::Start() { in Start() 66 bool Thread::StartWithOptions(const Options& options) { in StartWithOptions() 91 void Thread::Stop() { in Stop() 113 void Thread::StopSoon() { in StopSoon() 127 void Thread::Run(MessageLoop* message_loop) { in Run() [all …]
|
/external/regex-re2/util/ |
D | thread.cc | 10 Thread::Thread() { in Thread() function in Thread 16 Thread::~Thread() { in ~Thread() 20 Thread* t = (Thread*)v; in startThread() 25 void Thread::Start() { in Start() 33 void Thread::Join() { in Join() 41 void Thread::SetJoinable(bool j) { in SetJoinable()
|
/external/chromium_org/third_party/re2/util/ |
D | thread.cc | 10 Thread::Thread() { in Thread() function in Thread 16 Thread::~Thread() { in ~Thread() 20 Thread* t = (Thread*)v; in startThread() 25 void Thread::Start() { in Start() 33 void Thread::Join() { in Join() 41 void Thread::SetJoinable(bool j) { in SetJoinable()
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | SynchronizedSetTest.java | 67 assertTrue(Thread.holdsLock(mutex)); in toString() 72 assertTrue(Thread.holdsLock(mutex)); in equals() 77 assertTrue(Thread.holdsLock(mutex)); in hashCode() 82 assertTrue(Thread.holdsLock(mutex)); in add() 87 assertTrue(Thread.holdsLock(mutex)); in addAll() 92 assertTrue(Thread.holdsLock(mutex)); in clear() 97 assertTrue(Thread.holdsLock(mutex)); in contains() 102 assertTrue(Thread.holdsLock(mutex)); in containsAll() 107 assertTrue(Thread.holdsLock(mutex)); in isEmpty() 114 assertTrue(Thread.holdsLock(mutex)); in remove() [all …]
|
D | SynchronizedMultimapTest.java | 53 assertTrue(Thread.holdsLock(mutex)); in toString() 58 assertTrue(Thread.holdsLock(mutex)); in equals() 63 assertTrue(Thread.holdsLock(mutex)); in hashCode() 68 assertTrue(Thread.holdsLock(mutex)); in size() 73 assertTrue(Thread.holdsLock(mutex)); in isEmpty() 78 assertTrue(Thread.holdsLock(mutex)); in containsKey() 83 assertTrue(Thread.holdsLock(mutex)); in containsValue() 89 assertTrue(Thread.holdsLock(mutex)); in containsEntry() 94 assertTrue(Thread.holdsLock(mutex)); in get() 100 assertTrue(Thread.holdsLock(mutex)); in put() [all …]
|
/external/chromium_org/third_party/libjingle/source/talk/p2p/base/ |
D | transportchannelproxy.cc | 47 worker_thread_ = talk_base::Thread::Current(); in TransportChannelProxy() 58 ASSERT(talk_base::Thread::Current() == worker_thread_); in SetImplementation() 107 ASSERT(talk_base::Thread::Current() == worker_thread_); in SendPacket() 116 ASSERT(talk_base::Thread::Current() == worker_thread_); in SetOption() 125 ASSERT(talk_base::Thread::Current() == worker_thread_); in GetError() 133 ASSERT(talk_base::Thread::Current() == worker_thread_); in GetStats() 141 ASSERT(talk_base::Thread::Current() == worker_thread_); in IsDtlsActive() 149 ASSERT(talk_base::Thread::Current() == worker_thread_); in GetSslRole() 157 ASSERT(talk_base::Thread::Current() == worker_thread_); in SetSslRole() 166 ASSERT(talk_base::Thread::Current() == worker_thread_); in SetSrtpCiphers() [all …]
|
/external/valgrind/main/helgrind/tests/ |
D | tc20_verifywrap.stderr.exp | 10 Thread #x is the program's root thread 14 Thread #x was created 37 Thread #x's call to pthread_join failed 48 Thread #x's call to pthread_mutex_init failed 55 Thread #x: pthread_mutex_destroy of a locked mutex 61 Thread #x's call to pthread_mutex_destroy failed 68 Thread #x's call to pthread_mutex_lock failed 75 Thread #x's call to pthread_mutex_trylock failed 82 Thread #x's call to pthread_mutex_timedlock failed 89 Thread #x unlocked an invalid lock at 0x........ [all …]
|
D | tc22_exit_w_lock.stderr.exp-kfail-x86 | 2 ---Thread-Announcement------------------------------------------ 4 Thread #x was created 12 Thread #x: Exiting thread still holds 2 locks 15 ---Thread-Announcement------------------------------------------ 17 Thread #x was created 25 Thread #x: Exiting thread still holds 1 lock 28 ---Thread-Announcement------------------------------------------ 30 Thread #x is the program's root thread 34 Thread #x: Exiting thread still holds 1 lock
|
D | tc09_bad_unlock.stderr.exp | 4 Thread #x is the program's root thread 8 Thread #x unlocked a not-locked lock at 0x........ 19 Thread #x was created 28 Thread #x unlocked lock at 0x........ currently held by thread #x 40 Thread #x unlocked an invalid lock at 0x........ 47 Thread #x's call to pthread_mutex_unlock failed 56 Thread #x unlocked a not-locked lock at 0x........ 67 Thread #x: Attempt to re-lock a non-recursive lock I already hold 78 Thread #x: Bug in libpthread: recursive write lock granted on mutex/wrlock which does not support r… 85 Thread #x was created [all …]
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
D | InterruptionUtil.java | 44 private final Thread interruptee; 47 Interruptenator(Thread interruptee, long everyMillis) { in Interruptenator() 56 Thread.sleep(everyMillis); in run() 76 final Thread interruptee = Thread.currentThread(); in requestInterruptIn() 77 new Thread(new Runnable() { in requestInterruptIn() 93 new Interruptenator(Thread.currentThread(), interruptPeriodMillis); in repeatedlyInterruptTestThread() 94 final Thread interruptingThread = new Thread(interruptingTask); in repeatedlyInterruptTestThread() 101 Thread.interrupted(); in repeatedlyInterruptTestThread() 118 Thread thread, long timeout, TimeUnit unit) { in joinUninterruptibly() 136 Thread.currentThread().interrupt(); in joinUninterruptibly()
|
D | ThreadFactoryBuilderTest.java | 25 import java.lang.Thread.UncaughtExceptionHandler; 44 @Override public void uncaughtException(Thread t, Throwable e) { 58 Thread thread = threadFactory.newThread(monitoredRunnable); in testThreadFactoryBuilder_defaults() 61 Thread defaultThread = in testThreadFactoryBuilder_defaults() 76 Thread thread2 = threadFactory.newThread(monitoredRunnable); in testThreadFactoryBuilder_defaults() 84 Thread thread3 = threadFactory2.newThread(monitoredRunnable); in testThreadFactoryBuilder_defaults() 92 private static void checkThreadPoolName(Thread thread, int threadId) { in checkThreadPoolName() 107 Thread thread = factory.newThread(monitoredRunnable); in testDaemon_false() 113 Thread thread = factory.newThread(monitoredRunnable); in testDaemon_true() 118 for (int i = Thread.MIN_PRIORITY; i <= Thread.MAX_PRIORITY; i++) { in testPriority_custom() [all …]
|
/external/chromium_org/media/audio/ |
D | audio_device_thread.cc | 25 class AudioDeviceThread::Thread class in media::AudioDeviceThread 27 public base::RefCountedThreadSafe<AudioDeviceThread::Thread> { 29 Thread(AudioDeviceThread::Callback* callback, 43 friend class base::RefCountedThreadSafe<AudioDeviceThread::Thread>; 44 virtual ~Thread(); 60 DISALLOW_COPY_AND_ASSIGN(Thread); 76 thread_ = new AudioDeviceThread::Thread( in Start() 95 AudioDeviceThread::Thread::Thread(AudioDeviceThread::Callback* callback, in Thread() function in media::AudioDeviceThread::Thread 106 AudioDeviceThread::Thread::~Thread() { in ~Thread() 110 void AudioDeviceThread::Thread::Start() { in Start() [all …]
|