Searched refs:signal (Results 1 - 21 of 21) sorted by relevance

/libcore/luni/src/main/java/java/util/concurrent/locks/
H A DCondition.java63 * <b>notEmpty.signal();</b>
77 * <b>notFull.signal();</b>
105 * {@linkplain #await waiting} and {@linkplain #signal signalling} methods.
161 * <li>Some other thread invokes the {@link #signal} method for this
196 * method return in response to a signal. In that case the implementation
197 * must ensure that the signal is redirected to another waiting thread, if
212 * <li>Some other thread invokes the {@link #signal} method for this
249 * <li>Some other thread invokes the {@link #signal} method for this
315 * method return in response to a signal, or over indicating the elapse
317 * must ensure that the signal i
440 void signal(); method in interface:Condition
[all...]
H A DAbstractQueuedLongSynchronizer.java121 * inserted into a condition queue. Upon signal, the node is
154 * first indicate they need a signal,
175 * signal. So, most code doesn't need to check for particular
390 * If status is negative (i.e., possibly needing signal) try
418 * to calling unparkSuccessor of head if it needs signal.)
425 * signal. But if it does not, status is set to PROPAGATE to
462 * Try to signal next queued node if:
504 // or signal, so no further action is necessary.
516 // If successor needs signal, try to set pred's next-link
536 * Returns true if thread should block. This is the main signal
1687 public final void signal() { method in class:AbstractQueuedLongSynchronizer.ConditionObject
[all...]
H A DAbstractQueuedSynchronizer.java234 * except that it only requires a single {@code signal} to
256 * public void signal() { sync.releaseShared(1); }
347 * inserted into a condition queue. Upon signal, the node is
380 * first indicate they need a signal,
401 * signal. So, most code doesn't need to check for particular
616 * If status is negative (i.e., possibly needing signal) try
644 * to calling unparkSuccessor of head if it needs signal.)
651 * signal. But if it does not, status is set to PROPAGATE to
688 * Try to signal next queued node if:
730 // or signal, s
1911 public final void signal() { method in class:AbstractQueuedSynchronizer.ConditionObject
[all...]
/libcore/luni/src/main/java/java/util/concurrent/
H A DLinkedBlockingQueue.java61 * items have been entered since the signal. And symmetrically for
142 notEmpty.signal();
155 notFull.signal();
323 notFull.signal();
358 notFull.signal();
392 notFull.signal();
415 notEmpty.signal();
440 notEmpty.signal();
462 notEmpty.signal();
500 notFull.signal();
[all...]
H A DDelayQueue.java55 * signal some other thread before returning from take() or
115 available.signal();
205 available.signal();
256 available.signal();
H A DArrayBlockingQueue.java125 notEmpty.signal();
143 notFull.signal();
182 notFull.signal();
632 notFull.signal();
690 notFull.signal();
H A DLinkedBlockingDeque.java197 notEmpty.signal();
216 notEmpty.signal();
238 notFull.signal();
260 notFull.signal();
282 notFull.signal();
H A DScheduledThreadPoolExecutor.java845 * signal some other thread before returning from take() or
1021 available.signal();
1100 available.signal();
1142 available.signal();
H A DPriorityBlockingQueue.java454 notEmpty.signal();
/libcore/luni/src/main/native/
H A DAsynchronousCloseMonitor.cpp23 #include <signal.h>
38 * The specific signal chosen here is arbitrary, but bionic needs to know so that SIGRTMIN
47 static void blockedThreadSignalHandler(int /*signal*/) {
48 // Do nothing. We only sent this signal for its side-effect of interrupting syscalls.
52 // Ensure that the signal we send interrupts system calls but doesn't kill threads.
54 // (The whole reason we're sending this signal is to unblock system calls!)
61 ALOGE("setting blocked thread signal handler failed: %s", strerror(errno));
H A Dandroid_system_OsConstants.cpp29 #include <signal.h>
H A Dlibcore_io_Posix.cpp44 #include <signal.h>
130 * Used to retry networking system calls that can be interrupted with a signal. Unlike
132 * AsynchronousCloseMonitor::signalBlockedThreads(fd) is used to signal a close() or
166 * Used to retry system calls that can be interrupted with a signal. Unlike TEMP_FAILURE_RETRY, this
167 * also handles the case where AsynchronousCloseMonitor::signalBlockedThreads(fd) is used to signal
1773 static jstring Posix_strsignal(JNIEnv* env, jobject, jint signal) { argument
1774 return env->NewStringUTF(strsignal(signal));
/libcore/luni/src/test/java/libcore/java/net/
H A DSocketTest.java359 final CountDownLatch signal = new CountDownLatch(1);
373 signal.countDown();
385 boolean connectUnblocked = signal.await(2000, TimeUnit.MILLISECONDS);
/libcore/luni/src/main/java/libcore/io/
H A DOs.java97 public void kill(int pid, int signal) throws ErrnoException; argument
158 public String strsignal(int signal); argument
H A DForwardingOs.java105 public void kill(int pid, int signal) throws ErrnoException { os.kill(pid, signal); } argument
165 public String strsignal(int signal) { return os.strsignal(signal); } argument
H A DPosix.java99 public native void kill(int pid, int signal) throws ErrnoException; argument
242 public native String strsignal(int signal); argument
/libcore/luni/src/main/java/android/system/
H A DOs.java241 public static void kill(int pid, int signal) throws ErrnoException { Libcore.os.kill(pid, signal); } argument
510 public static String strsignal(int signal) { return Libcore.os.strsignal(signal); } argument
/libcore/jsr166-tests/src/test/java/jsr166/
H A DReentrantLockTest.java510 * Calling signal without holding lock throws IllegalMonitorStateException
518 c.signal();
524 * awaitNanos without a signal times out
544 * timed await without a signal times out
562 * awaitUntil without a signal times out
600 c.signal();
758 c.signal();
1008 * signal wakes up waiting threads in FIFO order
1041 c.signal();
1045 c.signal();
[all...]
H A DReentrantReadWriteLockTest.java897 * Calling signal without holding lock throws IllegalMonitorStateException
905 c.signal();
925 * awaitNanos without a signal times out
946 * timed await without a signal times out
965 * awaitUntil without a signal times out
1005 c.signal();
1138 * signal wakes up waiting threads in FIFO order
1172 c.signal();
1176 c.signal();
1542 c.signal();
[all...]
H A DAbstractQueuedLongSynchronizerTest.java627 * Calling signal without holding sync throws IllegalMonitorStateException
633 c.signal();
652 * await/awaitNanos/awaitUntil without a signal times out
688 c.signal();
831 c.signal();
987 c.signal();
H A DAbstractQueuedSynchronizerTest.java630 * Calling signal without holding sync throws IllegalMonitorStateException
636 c.signal();
655 * await/awaitNanos/awaitUntil without a signal times out
691 c.signal();
834 c.signal();
990 c.signal();

Completed in 379 milliseconds