/art/test/132-daemon-locks-shutdown/src/ |
H A D | Main.java | 28 Thread t = new Thread(new Wait(sync)); 34 private static class Wait implements Runnable { class in class:Main 37 public Wait(Object obj) { method in class:Main.Wait
|
/art/runtime/ |
H A D | barrier.h | 20 // very limited conditions, e.g. if only Pass(), but not Wait() is called. Unlike a standard 22 // Pass() or Wait(), and only then set the count using the Increment() method. Threads at 23 // a Wait() are only awoken if the count reaches zero AFTER the decrement is applied. 24 // This works because, also unlike most latch APIs, there is no way to Wait() without 44 // Wait on the barrier, decrement the count. 45 void Wait(Thread* self); 49 // - has not left the Wait() or Increment() call. 60 // another thread is still in Wait(). See above.
|
H A D | signal_set.h | 46 int Wait() { function in class:art::SignalSet
|
H A D | monitor_test.cc | 142 monitor_test_->barrier_->Wait(self); // Let the other thread know we're done. 150 // Now try to Wait on the Monitor. 151 Monitor::Wait(self, monitor_test_->object_.Get(), millis_, 0, true, 161 monitor_test_->complete_barrier_->Wait(self); // Wait for test completion. 188 monitor_test_->barrier_->Wait(self); // Wait for the other thread to set up the monitor. 196 Monitor::Wait(self, monitor_test_->object_.Get(), millis_, 0, true, 206 monitor_test_->complete_barrier_->Wait(self); // Wait fo [all...] |
H A D | barrier.cc | 35 void Barrier::Wait(Thread* self) { function in class:art::Barrier 56 condition_.Wait(self);
|
H A D | barrier_test.cc | 38 barrier_->Wait(self); 64 Barrier barrier(num_threads + 1); // One extra Wait() in main thread. 77 // Perform one additional Wait(), allowing pool threads to proceed. 78 barrier.Wait(self); 79 // Wait for all the threads to finish. 80 thread_pool.Wait(self, true, false); 124 // Wait for all the tasks to complete using the barrier.
|
H A D | object_lock.cc | 37 Monitor::Wait(self_, obj_.Get(), 0, 0, false, kWaiting);
|
H A D | thread_pool_test.cc | 70 // Wait for tasks to complete. 71 thread_pool.Wait(self, true, false); 139 thread_pool.Wait(self, true, false);
|
H A D | thread_pool.cc | 51 thread_pool_->creation_barier_.Wait(self); 95 // Wait for all of the threads to attach. 96 creation_barier_.Wait(self); 115 // Wait for the threads to finish. 152 task_queue_condition_.Wait(self); 178 void ThreadPool::Wait(Thread* self, bool do_work, bool may_hold_locks) { function in class:art::ThreadPool 186 // Wait until each thread is waiting and the task list is empty. 190 completion_condition_.Wait(self);
|
H A D | monitor.h | 78 static void Wait(Thread* self, mirror::Object* obj, int64_t ms, int32_t ns, 181 void Wait(Thread* self, int64_t msec, int32_t nsec, bool interruptShouldThrow, ThreadState why)
|
H A D | signal_catcher.cc | 77 cond_.Wait(self); 181 int signal_number = signals.Wait();
|
H A D | thread_pool.h | 84 // Wait for all tasks currently on queue to get completed. 85 void Wait(Thread* self, bool do_work, bool may_hold_locks);
|
H A D | monitor.cc | 261 MutexLock mu2(self, monitor_lock_); // Reacquire monitor_lock_ without mutator_lock_ for Wait. 263 monitor_contenders_.Wait(self); // Still contended so wait. 408 * Wait on a monitor until timeout, interrupt, or notification. Used for 430 void Monitor::Wait(Thread* self, int64_t ms, int32_t ns, function in class:art::Monitor 505 // Wait for a notification or a timeout to occur. 507 self->GetWaitConditionVariable()->Wait(self); 833 void Monitor::Wait(Thread* self, mirror::Object *obj, int64_t ms, int32_t ns, function in class:art::Monitor 867 mon->Wait(self, ms, ns, interruptShouldThrow, why);
|
H A D | thread-inl.h | 122 // Wait while our suspend count is non-zero. 128 Thread::resume_cond_->Wait(this);
|
H A D | thread_list.cc | 243 // Wait until the thread is suspended. 701 Thread::resume_cond_->Wait(self); 818 // Wait for another thread to exit before re-checking. 819 thread_exit_cond_.Wait(self);
|
/art/runtime/native/ |
H A D | java_lang_Object.cc | 49 o->Wait(soa.Self()); 55 o->Wait(soa.Self(), ms, ns);
|
H A D | java_lang_Thread.cc | 168 Monitor::Wait(Thread::Current(), lock, ms, ns, true, kSleeping);
|
/art/runtime/gc/space/ |
H A D | large_object_space_test.cc | 142 thread_pool.Wait(self, true, false);
|
/art/runtime/jdwp/ |
H A D | jdwp_main.cc | 267 * Wait until the thread finishes basic initialization. 270 state->thread_start_cond_.Wait(self); 287 state->attach_cond_.Wait(self);
|
/art/runtime/base/ |
H A D | mutex_test.cc | 126 state.cv.Wait(Thread::Current());
|
H A D | mutex.h | 388 // TODO: No thread safety analysis on Wait and TimedWait as they call mutex operations via their 390 void Wait(Thread* self) NO_THREAD_SAFETY_ANALYSIS; 392 // Variant of Wait that should be used with caution. Doesn't validate that no mutexes are held
|
/art/runtime/gc/ |
H A D | reference_processor.cc | 235 // Wait untul we are done processing reference. 237 condition_.Wait(self);
|
/art/runtime/mirror/ |
H A D | object-inl.h | 109 inline void Object::Wait(Thread* self) { function in class:art::mirror::Object 110 Monitor::Wait(self, this, 0, 0, true, kWaiting); 113 inline void Object::Wait(Thread* self, int64_t ms, int32_t ns) { function in class:art::mirror::Object 114 Monitor::Wait(self, this, ms, ns, true, kTimedWaiting);
|
H A D | object.h | 129 void Wait(Thread* self) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); 130 void Wait(Thread* self, int64_t timeout, int32_t nanos) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
|
/art/runtime/gc/collector/ |
H A D | mark_sweep.cc | 786 thread_pool->Wait(self, true, true); 884 thread_pool->Wait(self, true, true); 1180 thread_pool->Wait(self, true, true);
|