- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for iterLock (0.32 sec)
-
src/runtime/testdata/testprog/coro.go
//go:build goexperiment.rangefunc package main import ( "fmt" "iter" "runtime" ) func init() { register("CoroLockOSThreadIterLock", func() { println("expect: OK") CoroLockOSThread(callerExhaust, iterLock) }) register("CoroLockOSThreadIterLockYield", func() { println("expect: OS thread locking must match") CoroLockOSThread(callerExhaust, iterLockYield) }) register("CoroLockOSThreadLock", func() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 19:46:10 UTC 2024 - 3.6K bytes - Viewed (0) -
src/crypto/tls/conn.go
// has not yet completed. See [Conn.SetDeadline], [Conn.SetReadDeadline], and // [Conn.SetWriteDeadline]. func (c *Conn) Write(b []byte) (int, error) { // interlock with Close below for { x := c.activeCall.Load() if x&1 != 0 { return 0, net.ErrClosed } if c.activeCall.CompareAndSwap(x, x+2) { break } } defer c.activeCall.Add(-2)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 51.8K bytes - Viewed (0)