- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 66 for Synchronized (0.08 seconds)
-
src/main/java/org/codelibs/fess/entity/ChatSession.java
*/ public int getMessageCount() { synchronized (messagesLock) { return messages != null ? messages.size() : 0; } } /** * Clears all messages in this session and updates the last accessed timestamp. */ public void clearMessages() { synchronized (messagesLock) { if (messages != null) { messages.clear();Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 07 01:53:06 GMT 2026 - 6.7K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java
} @Override public int size() { synchronized (lock) { return cachingHashMap.size(); } } @Override public boolean isEmpty() { synchronized (lock) { return cachingHashMap.isEmpty(); } } @Override public @Nullable V get(@Nullable Object key) { Timestamped<V> value; synchronized (lock) { checkNotNull(key);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 12:40:22 GMT 2026 - 21.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/FutureCallbackTest.java
} @Override public void onSuccess(String result) { synchronized (monitor) { assertFalse(wasCalled); wasCalled = true; assertThat(result).isEqualTo(value); } } @Override public synchronized void onFailure(Throwable t) { synchronized (monitor) { assertFalse(wasCalled); wasCalled = true;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 6.7K bytes - Click Count (0) -
android/guava/src/com/google/common/io/FileBackedOutputStream.java
} } } synchronized void write(int b) throws IOException { update(1); out.write(b); } synchronized void write(byte[] b, int off, int len) throws IOException { update(len); out.write(b, off, len); } synchronized void close() throws IOException { out.close(); } synchronized void flush() throws IOException {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 17:30:49 GMT 2026 - 12.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/FutureCallbackTest.java
} @Override public void onSuccess(String result) { synchronized (monitor) { assertFalse(wasCalled); wasCalled = true; assertThat(result).isEqualTo(value); } } @Override public synchronized void onFailure(Throwable t) { synchronized (monitor) { assertFalse(wasCalled); wasCalled = true;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 6.7K bytes - Click Count (0) -
guava/src/com/google/common/collect/Tables.java
* * @param table the table to be wrapped in a synchronized view * @return a synchronized view of the specified table * @since 22.0 */ @J2ktIncompatible // Synchronized public static <R extends @Nullable Object, C extends @Nullable Object, V extends @Nullable Object> Table<R, C, V> synchronizedTable(Table<R, C, V> table) { return Synchronized.table(table, null); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 25.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractServiceTest.java
completionLatch.await(); synchronized (this) { return ImmutableList.copyOf(stateHistory); } } @Override public synchronized void starting() { assertTrue(stateHistory.isEmpty()); assertThat(service.state()).isNotEqualTo(State.NEW); stateHistory.add(State.STARTING); } @Override public synchronized void running() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 28.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractServiceTest.java
completionLatch.await(); synchronized (this) { return ImmutableList.copyOf(stateHistory); } } @Override public synchronized void starting() { assertTrue(stateHistory.isEmpty()); assertThat(service.state()).isNotEqualTo(State.NEW); stateHistory.add(State.STARTING); } @Override public synchronized void running() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 28.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/SynchronizedMapTest.java
package com.google.common.collect; import static com.google.common.base.Preconditions.checkNotNull; import static com.google.common.truth.Truth.assertThat; import com.google.common.collect.Synchronized.SynchronizedCollection; import com.google.common.collect.Synchronized.SynchronizedSet; import com.google.common.testing.SerializableTester; import java.io.Serializable; import java.util.Collection; import java.util.HashMap; import java.util.Map;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 6K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cache.kt
hitCount++ } } @Synchronized internal fun trackConditionalCacheHit() { hitCount++ } @Synchronized fun networkCount(): Int = networkCount @Synchronized fun hitCount(): Int = hitCount @Synchronized fun requestCount(): Int = requestCount private inner class RealCacheRequest(Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Mar 20 09:13:37 GMT 2026 - 26.9K bytes - Click Count (0)