- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for SendRecv (0.29 sec)
-
src/cmd/compile/internal/types2/under.go
// We have channels that differ in direction only. // If there's an unrestricted channel, select the restricted one. switch { case x.dir == SendRecv: return y case y.dir == SendRecv: return x } } } // types are different return nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 22:34:27 UTC 2024 - 2.7K bytes - Viewed (0) -
src/go/types/chan.go
type Chan struct { dir ChanDir elem Type } // A ChanDir value indicates a channel direction. type ChanDir int // The direction of a channel is indicated by one of these constants. const ( SendRecv ChanDir = iota SendOnly RecvOnly ) // NewChan returns a new channel type for the given direction and element type. func NewChan(dir ChanDir, elem Type) *Chan { return &Chan{dir: dir, elem: elem} }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 1K bytes - Viewed (0) -
src/go/types/under.go
// We have channels that differ in direction only. // If there's an unrestricted channel, select the restricted one. switch { case x.dir == SendRecv: return y case y.dir == SendRecv: return x } } } // types are different return nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 22:34:27 UTC 2024 - 2.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/typeparams/coretype.go
return nil } if !types.Identical(ch.Elem(), curr.Elem()) { return nil // channel elements are not identical. } if ch.Dir() == types.SendRecv { // ch is bidirectional. We can safely always use curr's direction. ch = curr } else if curr.Dir() != types.SendRecv && ch.Dir() != curr.Dir() { // ch and curr are not bidirectional and not the same direction. return nil } } return ch }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 5.3K bytes - Viewed (0) -
src/go/internal/gcimporter/support.go
// tag values must match the constants in cmd/compile/internal/gc/go.go switch d { case 1 /* Crecv */ : return types.RecvOnly case 2 /* Csend */ : return types.SendOnly case 3 /* Cboth */ : return types.SendRecv default: errorf("unexpected channel dir %d", d) return 0 } } var predeclared = []types.Type{ // basic types types.Typ[types.Bool], types.Typ[types.Int], types.Typ[types.Int8],
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 4.1K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/iexport.go
// Tag itag // arrayType // Len uint64 // Elem typeOff // } // // type ChanType struct { // Tag itag // chanType // Dir uint64 // 1 RecvOnly; 2 SendOnly; 3 SendRecv // Elem typeOff // } // // type MapType struct { // Tag itag // mapType // Key typeOff // Elem typeOff // } // // type FuncType struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jul 21 02:40:02 UTC 2023 - 6.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTransportImpl.java
throw new IOException("Failed to establish session with " + this.address); } private SmbNegotiation negotiate ( int prt ) throws IOException { /* * We cannot use Transport.sendrecv() yet because * the Transport thread is not setup until doConnect() * returns and we want to suppress all communication * until we have properly negotiated. */
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Wed Jan 18 23:47:00 UTC 2023 - 67K bytes - Viewed (0) -
src/go/types/operand.go
} } // x is a bidirectional channel value, T is a channel // type, x's type V and T have identical element types, // and at least one of V or T is not a named type. if Vc, ok := Vu.(*Chan); ok && Vc.dir == SendRecv { if Tc, ok := Tu.(*Chan); ok && Identical(Vc.elem, Tc.elem) { return !hasName(V) || !hasName(T), InvalidChanAssign } } // optimization: if we don't have type parameters, we're done
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 21:17:10 UTC 2024 - 11.1K bytes - Viewed (0) -
src/test/java/jcifs/tests/ConcurrencyTest.java
} else { e.printStackTrace(); fail("Failed to interrupt sendrecv"); } } } } } finally { this.executor.shutdown();
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Sun Nov 14 17:40:50 UTC 2021 - 17.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/operand.go
} } // x is a bidirectional channel value, T is a channel // type, x's type V and T have identical element types, // and at least one of V or T is not a named type. if Vc, ok := Vu.(*Chan); ok && Vc.dir == SendRecv { if Tc, ok := Tu.(*Chan); ok && Identical(Vc.elem, Tc.elem) { return !hasName(V) || !hasName(T), InvalidChanAssign } } // optimization: if we don't have type parameters, we're done
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 21:17:10 UTC 2024 - 11K bytes - Viewed (0)