- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 8,530 for ctan (0.05 sec)
-
src/runtime/testdata/testprogcgo/lockosthread.go
func LockOSThreadAlt() { // This is running locked to the main OS thread. var subThread C.pthread_t ready := make(chan bool, 1) C.threadExited = 0 go func() { // This goroutine must be running on a new thread. runtime.LockOSThread() subThread = C.pthread_self() // Register a pthread destructor so we can tell this // thread has exited. var key C.pthread_key_t
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 02 20:21:33 UTC 2023 - 2.5K bytes - Viewed (0) -
test/fixedbugs/issue65593.go
// compile // Copyright 2024 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package p const run = false func f() { if !run { return } messages := make(chan struct{}, 1) main: for range messages { break main }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 27 21:07:10 UTC 2024 - 319 bytes - Viewed (0) -
internal/bpool/bpool.go
package bpool import "github.com/klauspost/reedsolomon" // BytePoolCap implements a leaky pool of []byte in the form of a bounded channel. type BytePoolCap struct { c chan []byte w int wcap int } // NewBytePoolCap creates a new BytePool bounded to the given maxSize, with new // byte arrays sized based on width.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Apr 19 16:44:59 UTC 2024 - 2.6K bytes - Viewed (0) -
src/runtime/tracebackx_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package runtime func XTestSPWrite(t TestingT) { // Test that we can traceback from the stack check prologue of a function // that writes to SP. See #62326. // Start a goroutine to minimize the initial stack and ensure we grow the stack. done := make(chan bool) go func() { testSPWrite() // Defined in assembly done <- true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 06 14:45:46 UTC 2023 - 509 bytes - Viewed (0) -
pilot/pkg/model/xds_cache.go
} // XdsCache interface defines a store for caching XDS responses. // All operations are thread safe. type XdsCache interface { // Run starts a background thread to flush evicted indexes periodically. Run(stop <-chan struct{}) // Add adds the given XdsCacheEntry with the value for the given pushContext to the cache. // If the cache has been updated to a newer push context, the write will be dropped silently.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Mar 02 07:02:05 UTC 2023 - 6.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/httpstream/httpstream.go
// the stream is rejected. After the reply frame has been sent, replySent is closed. type NewStreamHandler func(stream Stream, replySent <-chan struct{}) error // NoOpNewStreamHandler is a stream handler that accepts a new stream and // performs no other logic. func NoOpNewStreamHandler(stream Stream, replySent <-chan struct{}) error { return nil } // Dialer knows how to open a streaming connection to a server. type Dialer interface {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 23 22:33:38 UTC 2023 - 6.4K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/fake.go
MeshWatcher mesh.Watcher ServiceHandler model.ServiceHandler ClusterID cluster.ID WatchedNamespaces string DomainSuffix string XDSUpdater model.XDSUpdater Stop chan struct{} SkipRun bool ConfigCluster bool SystemNamespace string } type FakeController struct { *Controller Endpoints *model.EndpointIndex }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/sigchanyzer/doc.go
// license that can be found in the LICENSE file. // Package sigchanyzer defines an Analyzer that detects // misuse of unbuffered signal as argument to signal.Notify. // // # Analyzer sigchanyzer // // sigchanyzer: check for unbuffered channel of os.Signal // // This checker reports call expression of the form // // signal.Notify(c <-chan os.Signal, sig ...os.Signal), //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 09 01:28:01 UTC 2023 - 585 bytes - Viewed (0) -
pkg/filewatcher/fakefilewatcher_test.go
// limitations under the License. package filewatcher import ( "fmt" "testing" "github.com/fsnotify/fsnotify" ) func TestFakeFileWatcher(t *testing.T) { addedChan := make(chan string, 10) removedChan := make(chan string, 10) changed := func(path string, added bool) { if added { addedChan <- path } else { removedChan <- path } } newWatcher, fakeWatcher := NewFakeWatcher(changed)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 24 14:06:41 UTC 2023 - 3.8K bytes - Viewed (0) -
pkg/kube/krt/helpers.go
func keyFunc(name, namespace string) string { if len(namespace) == 0 { return name } return namespace + "/" + name } func waitForCacheSync(name string, stop <-chan struct{}, collections ...<-chan struct{}) (r bool) { t := time.NewTicker(time.Second * 5) defer t.Stop() t0 := time.Now() defer func() { if r { log.WithLabels("name", name, "time", time.Since(t0)).Debugf("sync complete")
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 10 23:33:56 UTC 2024 - 3.4K bytes - Viewed (0)