- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 589 for newPipe (0.11 sec)
-
src/internal/poll/export_linux_test.go
// Since testing imports os and os imports internal/poll, // the internal/poll tests can not be in package poll. package poll var ( GetPipe = getPipe PutPipe = putPipe NewPipe = newPipe DestroyPipe = destroyPipe ) func GetPipeFds(p *SplicePipe) (int, int) { return p.rfd, p.wfd }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 10 03:52:48 UTC 2021 - 527 bytes - Viewed (0) -
src/internal/poll/splice_linux_test.go
if err != nil { continue } poll.PutPipe(p) } }) b.Run("SplicePipeWithoutPool", func(b *testing.B) { for i := 0; i < b.N; i++ { p := poll.NewPipe() if p == nil { b.Skip("newPipe returned nil") } poll.DestroyPipe(p) } }) } func BenchmarkSplicePipePoolParallel(b *testing.B) { b.RunParallel(func(pb *testing.PB) { for pb.Next() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 21:49:26 UTC 2024 - 2.8K bytes - Viewed (0) -
src/internal/poll/splice_linux.go
// redirecting the data transmission to the conventional way utilizing read() + write() as a fallback. p := newPipe() if p == nil { return nil } runtime.SetFinalizer(p, destroyPipe) return p } // getPipe tries to acquire a pipe buffer from the pool or create a new one with newPipe() if it gets nil from the cache. func getPipe() (*splicePipe, error) { v := splicePipePool.Get() if v == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 21:49:26 UTC 2024 - 7.6K bytes - Viewed (0) -
platforms/core-runtime/files/src/test/groovy/org/gradle/internal/file/impl/DefaultDeleterTest.groovy
FileTime.makeOld(targetDir, triggerFile) and: def newFile = targetDir.file("aaa.txt") deleter = FileTime.deleterWithDeletionAction() { file -> if (file.canonicalFile == triggerFile.canonicalFile) { FileTime.createNewFile(newFile) } return DeletionAction.CONTINUE } when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Feb 09 12:40:48 UTC 2024 - 14.2K bytes - Viewed (0) -
pkg/controller/certificates/cleaner/cleaner_test.go
metav1.NewTime(time.Now().Add(-1 * time.Minute)), []byte(unexpiredCert), []capi.CertificateSigningRequestCondition{ { Type: capi.CertificateApproved, LastUpdateTime: metav1.NewTime(time.Now().Add(-50 * time.Minute)), }, }, []string{}, }, { "no delete approved passed deadline not issued", metav1.NewTime(time.Now().Add(-1 * time.Minute)), nil,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 07 15:19:45 UTC 2022 - 7.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/FilesFileTraverserTest.java
public void testFileTraverser_multipleDirectoryLayers_breadthFirstStartsWithTopLayer() throws Exception { File fileA = newFile("file-a"); File dir1 = newDir("dir-1"); newFile("dir-1/file-b"); newFile("dir-1/dir-2"); assertThat(Iterables.limit(Files.fileTraverser().breadthFirst(rootDir), 3)) .containsExactly(rootDir, fileA, dir1); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Apr 21 20:17:27 UTC 2023 - 3.4K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/internal/reflect/validation/ValidationMessageDisplayConfiguration.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Dec 20 11:12:24 UTC 2023 - 4.2K bytes - Viewed (0) -
src/os/signal/signal_cgo_test.go
// we must ignore SIGTTOU. We are also an orphaned process // group (see above), so we must mask SIGTTOU to be eligible to // become foreground at all. signal.Ignore(syscall.SIGTTOU) pty := os.NewFile(ptyFD, "pty") controlW := os.NewFile(controlFD, "control-pipe") var ( ctx = context.Background() cmdArgs = []string{"-test.run=^TestTerminalSignal$"} ) if deadline, ok := t.Deadline(); ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 20 10:09:15 UTC 2024 - 10.7K bytes - Viewed (0) -
pkg/controller/job/backoff_utils_test.go
storeInitializer: emptyStoreInitializer, newSucceededPods: []metav1.Time{ metav1.NewTime(defaultTestTime.Add(-2 * time.Millisecond)), }, newFailedPods: []metav1.Time{ defaultTestTime, metav1.NewTime(defaultTestTime.Add(-4 * time.Millisecond)), metav1.NewTime(defaultTestTime.Add(-3 * time.Millisecond)), metav1.NewTime(defaultTestTime.Add(-1 * time.Millisecond)), }, wantBackoffRecord: backoffRecord{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 06 07:46:41 UTC 2024 - 16.7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/mod/modfile/print.go
p.printf("%s", strings.TrimSpace(com.Token)) p.newline() } for i, stmt := range f.Stmt { switch x := stmt.(type) { case *CommentBlock: // comments already handled p.expr(x) default: p.expr(x) p.newline() } for _, com := range stmt.Comment().After { p.printf("%s", strings.TrimSpace(com.Token)) p.newline() } if i+1 < len(f.Stmt) { p.newline()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 24 00:48:59 UTC 2023 - 3.8K bytes - Viewed (0)