Searched refs:Wait (Results 1 - 25 of 34) sorted by relevance

12

/art/test/132-daemon-locks-shutdown/src/
H A DMain.java28 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 Dbarrier.h20 // 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 Dsignal_set.h46 int Wait() { function in class:art::SignalSet
H A Dmonitor_test.cc142 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 Dbarrier.cc35 void Barrier::Wait(Thread* self) { function in class:art::Barrier
56 condition_.Wait(self);
H A Dbarrier_test.cc38 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 Dobject_lock.cc37 Monitor::Wait(self_, obj_.Get(), 0, 0, false, kWaiting);
H A Dthread_pool_test.cc70 // Wait for tasks to complete.
71 thread_pool.Wait(self, true, false);
139 thread_pool.Wait(self, true, false);
H A Dthread_pool.cc51 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 Dmonitor.h78 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 Dsignal_catcher.cc77 cond_.Wait(self);
181 int signal_number = signals.Wait();
H A Dthread_pool.h84 // Wait for all tasks currently on queue to get completed.
85 void Wait(Thread* self, bool do_work, bool may_hold_locks);
H A Dmonitor.cc261 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 Dthread-inl.h122 // Wait while our suspend count is non-zero.
128 Thread::resume_cond_->Wait(this);
H A Dthread_list.cc243 // 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 Djava_lang_Object.cc49 o->Wait(soa.Self());
55 o->Wait(soa.Self(), ms, ns);
H A Djava_lang_Thread.cc168 Monitor::Wait(Thread::Current(), lock, ms, ns, true, kSleeping);
/art/runtime/gc/space/
H A Dlarge_object_space_test.cc142 thread_pool.Wait(self, true, false);
/art/runtime/jdwp/
H A Djdwp_main.cc267 * 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 Dmutex_test.cc126 state.cv.Wait(Thread::Current());
H A Dmutex.h388 // 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 Dreference_processor.cc235 // Wait untul we are done processing reference.
237 condition_.Wait(self);
/art/runtime/mirror/
H A Dobject-inl.h109 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 Dobject.h129 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 Dmark_sweep.cc786 thread_pool->Wait(self, true, true);
884 thread_pool->Wait(self, true, true);
1180 thread_pool->Wait(self, true, true);

Completed in 237 milliseconds

12