- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestCondSignal (0.21 sec)
-
src/sync/cond_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package sync_test import ( "reflect" "runtime" . "sync" "testing" ) func TestCondSignal(t *testing.T) { var m Mutex c := NewCond(&m) n := 2 running := make(chan bool, n) awake := make(chan bool, n) for i := 0; i < n; i++ { go func() { m.Lock() running <- true c.Wait()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 22 18:52:42 UTC 2023 - 5K bytes - Viewed (0)