Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 49 for ctb2 (0.04 sec)

  1. src/internal/trace/testdata/testprog/annotations-stress.go

    	}
    	t1.End()
    
    	// Create a task that starts during the trace and ends after.
    	ctx2, t2 := trace.NewTask(ctx0, "type2")
    
    	// Create a task that starts and ends during the trace.
    	ctx3, t3 := trace.NewTask(baseCtx, "type3")
    
    	// Generate some events.
    	for i := 0; i < 2; i++ {
    		do(baseCtx, 4)
    		do(ctx0, 2)
    		do(ctx1, 3)
    		do(ctx2, 6)
    		do(ctx3, 5)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. cmd/shared-lock.go

    				// Send the lock context to anyone asking for it
    			}
    		}
    	}
    }
    
    func mergeContext(ctx1, ctx2 context.Context) (context.Context, context.CancelFunc) {
    	ctx, cancel := context.WithCancel(context.Background())
    	go func() {
    		select {
    		case <-ctx1.Done():
    		case <-ctx2.Done():
    		// The lock acquirer decides to cancel, exit this goroutine
    		case <-ctx.Done():
    		}
    
    		cancel()
    	}()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 13 09:26:38 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  3. analysis/analysis-api/testData/components/compilerFacility/compilation/codeFragments/capturing/multipleFunctionContextReceivers.txt

    public final class CodeFragment {
        // source: 'fragment.kt'
        public method <init>(): void
        public final static method run(p0: Ctx1, p1: Ctx2): int
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon Aug 14 15:22:43 UTC 2023
    - 158 bytes
    - Viewed (0)
  4. analysis/analysis-api/testData/components/compilerFacility/compilation/codeFragments/capturing/secondClassContextReceiver.capturing.txt

    ContainingClass[name: <this>; isMutated: false; displayText: this@Test]
        context(R|Ctx1|, R|Ctx2|)
        class Test : R|kotlin/Any|
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon Aug 14 15:22:43 UTC 2023
    - 145 bytes
    - Viewed (0)
  5. internal/dsync/drwmutex_test.go

    		panic("Failed to acquire read lock")
    	}
    	// fmt.Println("1st read lock acquired, waiting...")
    
    	drwm2 := NewDRWMutex(ds, "simplelock")
    	ctx2, cancel2 := context.WithCancel(context.Background())
    	if !drwm2.GetRLock(ctx2, cancel2, id, source, Options{Timeout: time.Second}) {
    		panic("Failed to acquire read lock")
    	}
    	// fmt.Println("2nd read lock acquired, waiting...")
    
    	go func() {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Dec 24 03:49:07 UTC 2022
    - 9.7K bytes
    - Viewed (0)
  6. pkg/kubelet/config/common_test.go

    				SecurityContext:          securitycontext.ValidSecurityContextWithContainerDefaults(),
    				VolumeMounts: []v1.VolumeMount{
    					{
    						Name:      "ctb-volume",
    						MountPath: "/var/run/ctb-volume",
    					},
    				},
    			}},
    			Volumes: []v1.Volume{
    				{
    					Name: "ctb-volume",
    					VolumeSource: v1.VolumeSource{
    						Projected: &v1.ProjectedVolumeSource{
    							Sources: []v1.VolumeProjection{
    								{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:48 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  7. src/context/context_test.go

    	checkNoGoroutine()
    	defer checkNoGoroutine()
    
    	ctx1, cancel1 := WithCancel(Background())
    	defer cancel1()
    	checkNoGoroutine()
    
    	ctx2 := &myCtx{ctx1}
    	ctx3, cancel3 := WithCancel(ctx2)
    	defer cancel3()
    	checkNoGoroutine()
    
    	_, cancel3b := WithCancel(&myDoneCtx{ctx2})
    	defer cancel3b()
    	checkCreatedGoroutine() // ctx1 is not providing Done, must not be used
    
    	ctx4, cancel4 := WithTimeout(ctx3, veryLongDuration)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 19 19:13:01 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  8. test/escape_struct_return.go

    func tA3() {
    	s := "cat"
    	sp := &s
    	spp := &sp
    	u := A(sp, spp)
    	println(**u._spp)
    }
    
    func tB1() {
    	s := "cat"
    	sp := &s
    	spp := &sp
    	u := B(spp)
    	_ = u
    	println(s)
    }
    
    func tB2() {
    	s := "cat"
    	sp := &s
    	spp := &sp
    	u := B(spp)
    	println(*u._sp)
    }
    
    func tB3() {
    	s := "cat"
    	sp := &s
    	spp := &sp
    	u := B(spp)
    	println(**u._spp)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 26 23:50:32 UTC 2021
    - 1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cached_token_authenticator_test.go

    		annotations1 := audit.AuditEventFrom(ctx1).Annotations
    
    		// guarantee different now times
    		time.Sleep(time.Second)
    
    		ctx2 := withAudit(context.Background())
    		_, _, _ = a.AuthenticateToken(ctx2, "token2")
    		annotations2 := audit.AuditEventFrom(ctx2).Annotations
    
    		if ok := len(annotations1) == 1 && len(annotations1["timestamp"]) > 0; !ok {
    			t.Errorf("invalid annotations 1: %v", annotations1)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 20.3K bytes
    - Viewed (0)
  10. src/net/pipe.go

    // buffering.
    func Pipe() (Conn, Conn) {
    	cb1 := make(chan []byte)
    	cb2 := make(chan []byte)
    	cn1 := make(chan int)
    	cn2 := make(chan int)
    	done1 := make(chan struct{})
    	done2 := make(chan struct{})
    
    	p1 := &pipe{
    		rdRx: cb1, rdTx: cn1,
    		wrTx: cb2, wrRx: cn2,
    		localDone: done1, remoteDone: done2,
    		readDeadline:  makePipeDeadline(),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 5.4K bytes
    - Viewed (0)
Back to top