- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 3,397 for ctan (0.18 sec)
-
src/runtime/chan.go
// instead of idx itself. However, in a future version of this function, // we can use idx to better handle the case of elemsize==0. // A future improvement to the detector is to call TSan with c and idx: // this way, Go will continue to not allocating buffer entries for channels // of elemsize==0, yet the race detector can be made to handle multiple // sync objects underneath the hood (one sync object per idx)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:50 UTC 2024 - 25.9K bytes - Viewed (0) -
src/runtime/race/testdata/mop_test.go
func TestRaceForTest(t *testing.T) { done := make(chan bool) c := make(chan bool) stop := false go func() { for { _, ok := <-c if !ok { done <- true return } stop = true } }() for !stop { c <- true } close(c) <-done } func TestRaceForIncr(t *testing.T) { done := make(chan bool) c := make(chan bool) x := 0 go func() { for {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 23 16:46:25 UTC 2023 - 28.9K bytes - Viewed (0) -
internal/grid/muxclient.go
responseCh <- resp } } func (m *muxClient) handleTwowayRequests(errResp chan<- Response, requests <-chan []byte) { var errState bool if debugPrint { start := time.Now() defer func() { fmt.Println("Mux", m.MuxID, "Request took", time.Since(start).Round(time.Millisecond)) }() } var pingTimer <-chan time.Time if m.deadline == 0 || m.deadline > m.clientPingInterval {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Jun 07 15:51:52 UTC 2024 - 15.9K bytes - Viewed (0) -
src/internal/reflectlite/all_test.go
{new(chan<- string), "chan<- string"}, {new(func(a int8, b int32)), "func(int8, int32)(arg)"}, {new(struct { c chan *int32 d float32 }), "struct { c chan *int32; d float32 }{chan *int32, 0}", }, {new(struct{ c func(chan *integer, *int8) }), "struct { c func(chan *reflectlite_test.integer, *int8) }{func(chan *reflectlite_test.integer, *int8)(arg)}", },
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 16 19:26:08 UTC 2023 - 24.2K bytes - Viewed (0) -
internal/grid/handlers.go
// An optional subroute can be given. Multiple entries are joined with '/'. func (h *StreamTypeHandler[Payload, Req, Resp]) RegisterNoPayload(m *Manager, handle func(ctx context.Context, in <-chan Req, out chan<- Resp) *RemoteErr, subroute ...string) error { h.WithPayload = false return h.register(m, func(ctx context.Context, p Payload, in <-chan Req, out chan<- Resp) *RemoteErr { return handle(ctx, in, out)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:51:27 UTC 2024 - 27.1K bytes - Viewed (0) -
pilot/pkg/leaderelection/leaderelection_test.go
const testLock = "test-lock" func createElection(t *testing.T, name string, revision string, watcher revisions.DefaultWatcher, expectLeader bool, client kubernetes.Interface, fns ...func(stop <-chan struct{}), ) (*LeaderElection, chan struct{}) { t.Helper() return createElectionMulticluster(t, name, revision, false, false, watcher, expectLeader, client, fns...) } func createPerRevisionElection(t *testing.T,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Apr 28 04:22:19 UTC 2024 - 11.4K bytes - Viewed (0) -
src/internal/types/testdata/check/stmt0.go
z complex128 ) x++ y-- z++ } func sends() { var ch chan int var rch <-chan int var x int x <- /* ERROR "cannot send" */ x rch <- /* ERROR "cannot send" */ x ch <- "foo" /* ERRORx `cannot use .* in send` */ ch <- x } func selects() { select {} var ( ch chan int sc chan <- bool ) select { case <-ch: case (<-ch): case t := <-ch: _ = t
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 19K bytes - Viewed (0) -
src/cmd/compile/internal/types2/builtins_test.go
{"clear", `var s []byte; clear(s)`, `func([]byte)`}, {"close", `var c chan int; close(c)`, `func(chan int)`}, {"close", `var c chan<- chan string; close(c)`, `func(chan<- chan string)`}, {"complex", `_ = complex(1, 0)`, `invalid type`}, // constant {"complex", `var re float32; _ = complex(re, 1.0)`, `func(float32, float32) complex64`},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 18:06:31 UTC 2024 - 10.8K bytes - Viewed (0) -
src/runtime/stack_test.go
const ( R = 4 G = 200 S = 5 ) for i := 0; i < R; i++ { var reqchans [G]chan int done := make(chan struct{}) for j := 0; j < G; j++ { reqchans[j] = make(chan int) go growing(reqchans[j], done) } for s := 0; s < S; s++ { for j := 0; j < G; j++ { reqchans[j] <- 1 << uint(s) } for j := 0; j < G; j++ { <-done }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 14 00:03:57 UTC 2023 - 23.1K bytes - Viewed (0) -
src/net/net_fake.go
type packetQueue struct { empty chan packetQueueState // contains configuration parameters when the queue is empty and not closed ready chan packetQueueState // contains the packets when non-empty or closed full chan packetQueueState // contains the packets when buffer is full and not closed } func newPacketQueue(readBufferBytes int) *packetQueue { pq := &packetQueue{ empty: make(chan packetQueueState, 1),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 27 19:24:21 UTC 2024 - 26.4K bytes - Viewed (0)