Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 92 for Loadint32 (0.41 sec)

  1. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/delete_test.go

    		t.Fatalf("expected request context to not have any deadline")
    	}
    
    	recorder := httptest.NewRecorder()
    	handler.ServeHTTP(recorder, request)
    	if atomic.LoadInt32(&invokedGot) != 1 {
    		t.Errorf("expected collection deleter to be invoked")
    	}
    	if atomic.LoadInt32(&hasDeadlineGot) > 0 {
    		t.Errorf("expected context to not have any deadline")
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/eventclock/real_event_clock_test.go

    		}
    	}
    	try(true, time.Millisecond*3300)
    	for i := 0; i < batchSize; i++ {
    		d := time.Duration(rand.Intn(30)-3) * time.Millisecond * 100
    		try(i%2 == 0, d)
    	}
    	time.Sleep(time.Second * 4)
    	if atomic.LoadInt32(&numDone) != batchSize+1 {
    		t.Errorf("Got only %v events", numDone)
    	}
    	lastTime := now
    	for i := 0; i <= batchSize; i++ {
    		nextTime := <-times
    		if nextTime.Before(now) {
    			continue
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Aug 07 04:07:31 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  3. test/fixedbugs/issue24449.go

    		atomic.AddInt32(&cnt32, 2)
    	}
    	atomic.AddInt32(&cnt32, 4)
    	if len(a) >= len(b) {
    		atomic.AddInt32(&cnt32, 8)
    	}
    	if len(a) <= len(b) {
    		atomic.AddInt32(&cnt32, 16)
    	}
    	return atomic.LoadInt32(&cnt32) == 31
    }
    
    var cnt64 int64
    
    //go:noinline
    func test64(a, b []int) bool {
    	// Try to generate flag value, issue atomic
    	// adds and then re-use the flag value to see if
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 20 09:44:50 UTC 2018
    - 1.2K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/issue9400_linux.go

    	defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(2))
    
    	// Start signaller
    	atomic.StoreInt32(&issue9400.Baton, 0)
    	go func() {
    		// Wait for RewindAndSetgid
    		for atomic.LoadInt32(&issue9400.Baton) == 0 {
    			runtime.Gosched()
    		}
    		// Broadcast SIGSETXID
    		runtime.LockOSThread()
    		C.setgid(0)
    		// Indicate that signalling is done
    		atomic.StoreInt32(&issue9400.Baton, 0)
    	}()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 18 19:55:29 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  5. pilot/pkg/config/memory/controller_test.go

    }
    
    func TestControllerHashSynced(t *testing.T) {
    	store := memory.Make(collections.Mocks)
    	var v int32
    	ctl := memory.NewController(store)
    
    	ctl.RegisterHasSyncedHandler(func() bool {
    		return atomic.LoadInt32(&v) > 0
    	})
    
    	if ctl.HasSynced() {
    		t.Error("has synced but should not")
    	}
    	atomic.StoreInt32(&v, 1)
    	if !ctl.HasSynced() {
    		t.Error("has not synced but should")
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Aug 18 15:37:45 UTC 2021
    - 1.8K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/test/testx.go

    )
    
    //export Issue1560FromC
    func Issue1560FromC() {
    	for atomic.LoadInt32(&issue1560) != 1 {
    		runtime.Gosched()
    	}
    	atomic.AddInt32(&issue1560, 1)
    	for atomic.LoadInt32(&issue1560) != 3 {
    		runtime.Gosched()
    	}
    	issue1560Ch <- true
    }
    
    func Issue1560FromGo() {
    	atomic.AddInt32(&issue1560, 1)
    	for atomic.LoadInt32(&issue1560) != 2 {
    		runtime.Gosched()
    	}
    	atomic.AddInt32(&issue1560, 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 21:53:11 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  7. internal/pubsub/pubsub.go

    	types := Mask(atomic.LoadUint64(&ps.types))
    	if !types.Overlaps(Mask(mask.Mask())) {
    		return 0
    	}
    	return atomic.LoadInt32(&ps.numSubscribers)
    }
    
    // Subscribers returns the number of current subscribers for all types.
    func (ps *PubSub[T, M]) Subscribers() int32 {
    	return atomic.LoadInt32(&ps.numSubscribers)
    }
    
    // New inits a PubSub system with a limit of maximum
    // subscribers unless zero is specified
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Feb 06 16:57:30 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  8. src/internal/runtime/atomic/atomic_s390x.s

    TEXT ·Storeint64(SB), NOSPLIT, $0-16
    	BR	·Store64(SB)
    
    // func Storeuintptr(ptr *uintptr, new uintptr)
    TEXT ·Storeuintptr(SB), NOSPLIT, $0-16
    	BR	·Store64(SB)
    
    // func Loadint32(ptr *int32) int32
    TEXT ·Loadint32(SB), NOSPLIT, $0-12
    	BR	·Load(SB)
    
    // func Loadint64(ptr *int64) int64
    TEXT ·Loadint64(SB), NOSPLIT, $0-16
    	BR	·Load64(SB)
    
    // func Xadduintptr(ptr *uintptr, delta uintptr) uintptr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  9. pilot/pkg/status/resourcelock_test.go

    	workers.Push(r1, c1, nil)
    	<-x
    	<-y
    	<-x
    	workers.Push(r1, c1, nil)
    	workers.Push(r1a, c1, nil)
    	<-y
    	<-x
    	select {
    	case <-x:
    		t.FailNow()
    	default:
    	}
    	<-y
    	result := atomic.LoadInt32(&runCount)
    	g.Expect(result).To(Equal(int32(3)))
    	cancel()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  10. src/sync/atomic/asm.s

    TEXT ·AddInt64(SB),NOSPLIT,$0
    	JMP	internal∕runtime∕atomic·Xadd64(SB)
    
    TEXT ·AddUint64(SB),NOSPLIT,$0
    	JMP	internal∕runtime∕atomic·Xadd64(SB)
    
    TEXT ·LoadInt32(SB),NOSPLIT,$0
    	JMP	internal∕runtime∕atomic·Load(SB)
    
    TEXT ·LoadUint32(SB),NOSPLIT,$0
    	JMP	internal∕runtime∕atomic·Load(SB)
    
    TEXT ·LoadInt64(SB),NOSPLIT,$0
    	JMP	internal∕runtime∕atomic·Load64(SB)
    
    TEXT ·LoadUint64(SB),NOSPLIT,$0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top