- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 242 for writelns (0.27 sec)
-
src/sync/atomic/example_test.go
m.Store(make(Map)) var mu sync.Mutex // used only by writers // read function can be used to read the data without further synchronization read := func(key string) (val string) { m1 := m.Load().(Map) return m1[key] } // insert function can be used to update the data without further synchronization insert := func(key, val string) { mu.Lock() // synchronize with other potential writers defer mu.Unlock()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 18 23:58:54 UTC 2018 - 2.2K bytes - Viewed (0) -
src/runtime/rwmutex.go
rLock mutex // protects readers, readerPass, writer readers muintptr // list of pending readers readerPass uint32 // number of pending readers to skip readers list wLock mutex // serializes writers writer muintptr // pending writer waiting for completing readers readerCount atomic.Int32 // number of pending readers readerWait atomic.Int32 // number of departing readers
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 22 14:29:04 UTC 2024 - 5K bytes - Viewed (0) -
platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/AnsiExecutor.java
*/ package org.gradle.internal.logging.console; import org.gradle.api.Action; public interface AnsiExecutor { void write(Action<? super AnsiContext> action); void writeAt(Cursor writePos, Action<? super AnsiContext> action);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:05:18 UTC 2023 - 851 bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/btree/FreeListBlockStore.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 26 16:02:32 UTC 2024 - 8.7K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/changedetection/state/CachingFileHasher.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jan 10 13:47:15 UTC 2023 - 5.3K bytes - Viewed (0) -
platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/serializer/TextQuestionPromptEventSerializer.java
public class TextQuestionPromptEventSerializer implements Serializer<TextQuestionPromptEvent> { @Override public void write(Encoder encoder, TextQuestionPromptEvent value) throws Exception { encoder.writeLong(value.getTimestamp()); encoder.writeString(value.getQuestion()); encoder.writeString(value.getDefaultValue()); } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 30 05:02:18 UTC 2024 - 1.4K bytes - Viewed (0) -
platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/serializer/YesNoQuestionPromptEventSerializer.java
public class YesNoQuestionPromptEventSerializer implements Serializer<YesNoQuestionPromptEvent> { @Override public void write(Encoder encoder, YesNoQuestionPromptEvent value) throws Exception { encoder.writeLong(value.getTimestamp()); encoder.writeString(value.getQuestion()); } @Override public YesNoQuestionPromptEvent read(Decoder decoder) throws Exception {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 30 05:02:18 UTC 2024 - 1.3K bytes - Viewed (0) -
src/net/http/cgi/integration_test.go
} req, _ := http.NewRequest("GET", "http://example.com/test.go?write-forever=1", nil) rec := httptest.NewRecorder() var out bytes.Buffer const writeLen = 50 << 10 rw := &customWriterRecorder{&limitWriter{&out, writeLen}, rec} h.ServeHTTP(rw, req) if out.Len() != writeLen || out.Bytes()[0] != 'a' { t.Errorf("unexpected output: %q", out.Bytes()) } } // Test that a child handler writing only headers works.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 07 18:42:44 UTC 2023 - 5.5K bytes - Viewed (0) -
platforms/core-configuration/stdlib-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/stdlib/DurationCodec.kt
override suspend fun WriteContext.encode(value: Duration) { // Do not use the ISO-8601 format for serialization // to work around https://bugs.openjdk.java.net/browse/JDK-8054978 // on Java 8 writeLong(value.seconds) writeSmallInt(value.nano) } override suspend fun ReadContext.decode(): Duration = Duration.ofSeconds(readLong(), readSmallInt().toLong())
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat May 25 20:43:52 UTC 2024 - 1.3K bytes - Viewed (0) -
platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/serializer/BooleanQuestionPromptEventSerializer.java
public class BooleanQuestionPromptEventSerializer implements Serializer<BooleanQuestionPromptEvent> { @Override public void write(Encoder encoder, BooleanQuestionPromptEvent value) throws Exception { encoder.writeLong(value.getTimestamp()); encoder.writeString(value.getQuestion()); encoder.writeBoolean(value.getDefaultValue()); } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 30 05:02:18 UTC 2024 - 1.4K bytes - Viewed (0)