- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 46 for enterIf (0.09 seconds)
-
android/guava/src/com/google/common/util/concurrent/Monitor.java
public boolean enter(Duration time) { return enter(toNanosSaturated(time), NANOSECONDS); } /** * Enters this monitor. Blocks at most the given time. * * @return whether the monitor was entered */ @SuppressWarnings("GoodTime") // should accept a java.time.Duration public boolean enter(long time, TimeUnit unit) { long timeoutNanos = toSafeNanos(time, unit);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jan 28 22:39:02 GMT 2026 - 43.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java
* methods that do not take an explicit timeout value, a single test case is generated only if the * implicit timeout of that method matches the given timeoutsToUse. For example, enter() is * treated like enter(MAX, MILLIS) and tryEnter() is treated like enter(0, MILLIS). */ private static void addTests( TestSuite suite, Method method, Scenario scenario, TimeoutsToUse timeoutsToUse,
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 26.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java
* methods that do not take an explicit timeout value, a single test case is generated only if the * implicit timeout of that method matches the given timeoutsToUse. For example, enter() is * treated like enter(MAX, MILLIS) and tryEnter() is treated like enter(0, MILLIS). */ private static void addTests( TestSuite suite, Method method, Scenario scenario, TimeoutsToUse timeoutsToUse,
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 26.7K bytes - Click Count (0) -
guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java
*/ @CanIgnoreReturnValue @Override public boolean offer(E e) { checkNotNull(e); Monitor monitor = this.monitor; if (monitor.enterIf(notFull)) { try { insert(e); return true; } finally { monitor.leave(); } } else { return false; } } /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 21:06:42 GMT 2026 - 22.4K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/AbstractService.java
* * @since 27.0 */ @ForOverride protected void doCancelStart() {} @CanIgnoreReturnValue @Override public final Service startAsync() { if (monitor.enterIf(isStartable)) { try { snapshot = new StateSnapshot(STARTING); enqueueStartingEvent(); doStart(); } catch (Throwable startupFailure) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Feb 19 21:24:11 GMT 2025 - 20.3K bytes - Click Count (0) -
android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java
*/ @CanIgnoreReturnValue @Override public boolean offer(E e) { checkNotNull(e); Monitor monitor = this.monitor; if (monitor.enterIf(notFull)) { try { insert(e); return true; } finally { monitor.leave(); } } else { return false; } } /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 21:06:42 GMT 2026 - 22.4K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/ServiceManager.java
/** Constructor for use by subclasses. */ public Listener() {} /** * Called when the service initially becomes healthy. * * <p>This will be called at most once after all the services have entered the {@linkplain * State#RUNNING running} state. If any services fail during start up or {@linkplain * State#FAILED fail}/{@linkplain State#TERMINATED terminate} before all other services haveCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 33.2K bytes - Click Count (1) -
android/guava/src/com/google/common/util/concurrent/Service.java
* therefore every method of the listener will be called at most once. N.B. The {@link State#FAILED} * and {@link State#TERMINATED} states are terminal states, once a service enters either of these * states it cannot ever leave them. * * <p>Implementors of this interface are strongly encouraged to extend one of the abstract classesCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 10.8K bytes - Click Count (0) -
src/main/webapp/js/suggestor.js
* Provides real-time search suggestions with keyboard and mouse navigation */ (function ($) { "use strict"; // Key code constants for better readability var KEY_CODES = { BACKSPACE: 8, ENTER: 13, SPACE: 32, UP: 38, DOWN: 40, DELETE: 46, NUM_0: 48, NUM_9: 57, A: 65, Z: 90, NUMPAD_0: 96, NUMPAD_9: 105, SEMICOLON: 186, EQUALS: 187,Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Nov 20 11:04:08 GMT 2025 - 13.3K bytes - Click Count (0) -
guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java
public <T> T[] toArray(T[] a) { Monitor monitor = this.monitor; monitor.enter(); try { return q.toArray(a); } finally { monitor.leave(); } } @CanIgnoreReturnValue // pushed down from class to method @Override public String toString() { Monitor monitor = this.monitor; monitor.enter(); try { return q.toString(); } finally {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 21:06:42 GMT 2026 - 19K bytes - Click Count (0)