- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 50 for Park (0.19 sec)
-
android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java
* protect ourselves from this, we park ourselves and tell our interrupter that we did so. */ if (state == PARKED || compareAndSet(state, PARKED)) { // Interrupting Cow Says: // ______ // < Park > // ------ // \ ^__^ // \ (oo)\_______
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Fri Sep 29 21:34:48 GMT 2023 - 9.9K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/PostForm.java
public final class PostForm { private final OkHttpClient client = new OkHttpClient(); public void run() throws Exception { RequestBody formBody = new FormBody.Builder() .add("search", "Jurassic Park") .build(); Request request = new Request.Builder() .url("https://en.wikipedia.org/w/index.php") .post(formBody) .build();
Java - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun May 22 01:29:42 GMT 2016 - 1.4K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AbstractFuture.java
helper = new SynchronizedHelper(); } } ATOMIC_HELPER = helper; // Prevent rare disastrous classloading in first call to LockSupport.park. // See: https://bugs.openjdk.java.net/browse/JDK-8074773 @SuppressWarnings("unused") Class<?> ensureLoaded = LockSupport.class;
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Apr 22 21:17:24 GMT 2024 - 63K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java
thread.setPriority(Thread.MAX_PRIORITY); thread.resume(); thread.join(); // It's possible to race and suspend the thread just before the park call actually takes effect, // causing the thread to be suspended for 3.5 seconds, and then park itself for 2 seconds after // being resumed. To avoid a flake in this scenario, calculate how long that thread actually
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Feb 13 14:28:25 GMT 2024 - 46.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java
thread.setPriority(Thread.MAX_PRIORITY); thread.resume(); thread.join(); // It's possible to race and suspend the thread just before the park call actually takes effect, // causing the thread to be suspended for 3.5 seconds, and then park itself for 2 seconds after // being resumed. To avoid a flake in this scenario, calculate how long that thread actually
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Tue Feb 13 14:28:25 GMT 2024 - 46.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/ByteStreamsTest.java
assertEquals(big[1], small[3]); } public void testLimit_mark() throws Exception { byte[] big = newPreFilledByteArray(5); InputStream bin = new ByteArrayInputStream(big); InputStream lin = ByteStreams.limit(bin, 2); int read = lin.read(); assertEquals(big[0], read); lin.mark(2); read = lin.read(); assertEquals(big[1], read); read = lin.read();
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 21.9K bytes - Viewed (0) -
android/guava/src/com/google/common/io/ByteStreams.java
public int available() throws IOException { return (int) Math.min(in.available(), left); } // it's okay to mark even if mark isn't supported, as reset won't work @Override public synchronized void mark(int readLimit) { in.mark(readLimit); mark = left; } @Override public int read() throws IOException { if (left == 0) { return -1; }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Jan 17 18:59:58 GMT 2024 - 29.7K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/DcerpcHandle.java
Java - Registered: Sun Apr 28 00:10:09 GMT 2024 - Last Modified: Sun Jun 30 10:11:57 GMT 2019 - 12.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CharSequenceReaderTest.java
assertEquals(string, readFully(reader)); assertFullyRead(reader); // reset, skip, mark, then read the rest reader.reset(); assertEquals(5, reader.skip(5)); reader.mark(Integer.MAX_VALUE); assertEquals(string.substring(5), readFully(reader)); assertFullyRead(reader); // reset to the mark and then read the rest reader.reset(); assertEquals(string.substring(5), readFully(reader));
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 6.5K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/execution/ProfileActivation.java
inactiveProfileIds.forEach(this::deactivateOptionalProfile); } /** * Mark a profile as required and activated. * @param id The identifier of the profile. */ public void activateRequiredProfile(String id) { this.activations.put(id, ActivationSettings.ACTIVATION_REQUIRED); } /** * Mark a profile as optional and activated. * @param id The identifier of the profile. */
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Mon Dec 26 15:12:32 GMT 2022 - 5.6K bytes - Viewed (0)