Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for AddUint32 (0.2 sec)

  1. src/cmd/asm/internal/asm/operand_test.go

    	{"ts+16(FP)", "ts+16(FP)"},
    	{"x+24(FP)", "x+24(FP)"},
    	{"x·y(SB)", "x.y(SB)"},
    	{"x·y(SP)", "x.y(SP)"},
    	{"x·y+8(SB)", "x.y+8(SB)"},
    	{"x·y+8(SP)", "x.y+8(SP)"},
    	{"y+56(FP)", "y+56(FP)"},
    	{"·AddUint32(SB)", "pkg.AddUint32(SB)"},
    	{"·callReflect(SB)", "pkg.callReflect(SB)"},
    	{"[X0-X0]", "[X0-X0]"},
    	{"[ Z9 - Z12 ]", "[Z9-Z12]"},
    	{"[X0-AX]", "[X0-AX]"},
    	{"[AX-X0]", "[AX-X0]"},
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Aug 29 18:31:05 GMT 2023
    - 23.9K bytes
    - Viewed (0)
  2. internal/http/server.go

    			w.Header().Set(RetryAfter, "60")
    
    			w.WriteHeader(http.StatusServiceUnavailable)
    			w.Write([]byte(http.ErrServerClosed.Error()))
    			return
    		}
    
    		atomic.AddInt32(&srv.requestCount, 1)
    		defer atomic.AddInt32(&srv.requestCount, -1)
    
    		// Handle request using passed handler.
    		handler.ServeHTTP(w, r)
    	})
    
    	srv.listenerMutex.Lock()
    	srv.Handler = wrappedHandler
    	srv.listener = listener
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Feb 09 21:25:16 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  3. internal/http/listener_test.go

    rr3DRiUP6V/10CZ/ImeSJ72k69VuTw9vq2HzB4x6pqxF2X7JQSLUCS2wfNN13N0d
    9A==
    -----END CERTIFICATE-----`)
    
    	return tls.X509KeyPair(certPEMBlock, keyPEMBlock)
    }
    
    func getNextPort() string {
    	return strconv.Itoa(int(atomic.AddUint32(&serverPort, 1)))
    }
    
    func getNonLoopBackIP(t *testing.T) string {
    	localIP4 := set.NewStringSet()
    	addrs, err := net.InterfaceAddrs()
    	if err != nil {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Jun 12 16:09:28 GMT 2023
    - 11.8K bytes
    - Viewed (0)
  4. internal/pubsub/pubsub.go

    func (ps *PubSub[T, M]) Subscribe(mask M, subCh chan T, doneCh <-chan struct{}, filter func(entry T) bool) error {
    	totalSubs := atomic.AddInt32(&ps.numSubscribers, 1)
    	if ps.maxSubscribers > 0 && totalSubs > ps.maxSubscribers {
    		atomic.AddInt32(&ps.numSubscribers, -1)
    		return fmt.Errorf("the limit of `%d` subscribers is reached", ps.maxSubscribers)
    	}
    	ps.Lock()
    	defer ps.Unlock()
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Feb 06 16:57:30 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  5. internal/lsync/lrwmutex_test.go

    	for i := 0; i < numIterations; i++ {
    		if rwm.GetRLock(context.Background(), "", "", time.Second) {
    			n := atomic.AddInt32(activity, 1)
    			if n < 1 || n >= 10000 {
    				panic(fmt.Sprintf("wlock(%d)\n", n))
    			}
    			for i := 0; i < 100; i++ {
    			}
    			atomic.AddInt32(activity, -1)
    			rwm.RUnlock()
    		}
    	}
    	cdone <- true
    }
    
    // Borrowed from rwmutex_test.go
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Mar 05 04:57:35 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  6. internal/dsync/drwmutex_test.go

    	for i := 0; i < numIterations; i++ {
    		if rwm.GetRLock(context.Background(), nil, id, source, Options{Timeout: time.Second}) {
    			n := atomic.AddInt32(activity, 1)
    			if n < 1 || n >= 10000 {
    				panic(fmt.Sprintf("wlock(%d)\n", n))
    			}
    			for i := 0; i < 100; i++ {
    			}
    			atomic.AddInt32(activity, -1)
    			rwm.RUnlock(context.Background())
    		}
    	}
    	cdone <- true
    }
    
    // Borrowed from rwmutex_test.go
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Dec 24 03:49:07 GMT 2022
    - 9.7K bytes
    - Viewed (0)
  7. cni/pkg/nodeagent/server_test.go

    		}
    	}
    }
    
    func (wg *WaitGroup) Add(i int32) {
    	select {
    	case <-wg.done:
    		panic("use of an already closed WaitGroup")
    	default:
    	}
    	atomic.AddInt32(&wg.count, i)
    }
    
    func (wg *WaitGroup) Done() {
    	i := atomic.AddInt32(&wg.count, -1)
    	if i == 0 {
    		close(wg.done)
    	}
    }
    
    func (wg *WaitGroup) C() <-chan struct{} {
    	return wg.done
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  8. cmd/bucket-replication.go

    				return
    			}
    			switch v := oi.(type) {
    			case ReplicateObjectInfo:
    				globalReplicationStats.incQ(v.Bucket, v.Size, v.DeleteMarker, v.OpType)
    				atomic.AddInt32(&p.activeMRFWorkers, 1)
    				replicateObject(p.ctx, v, p.objLayer)
    				atomic.AddInt32(&p.activeMRFWorkers, -1)
    				globalReplicationStats.decQ(v.Bucket, v.Size, v.DeleteMarker, v.OpType)
    
    			default:
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 112.2K bytes
    - Viewed (1)
  9. cmd/erasure-decode.go

    				case errors.Is(err, errFileNotFound):
    					atomic.StoreInt32(&missingPartsHeal, 1)
    				case errors.Is(err, errFileCorrupt):
    					atomic.StoreInt32(&bitrotHeal, 1)
    				case errors.Is(err, errDiskNotFound):
    					atomic.AddInt32(&disksNotFound, 1)
    				}
    
    				// This will be communicated upstream.
    				p.orgReaders[bufIdx] = nil
    				p.readers[i] = nil
    
    				// Since ReadAt returned error, trigger another read.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 16:44:59 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  10. cmd/http-stats.go

    	totalS3Canceled         HTTPAPIStats
    }
    
    func (st *HTTPStats) loadRequestsInQueue() int32 {
    	return atomic.LoadInt32(&st.s3RequestsInQueue)
    }
    
    func (st *HTTPStats) addRequestsInQueue(i int32) {
    	atomic.AddInt32(&st.s3RequestsInQueue, i)
    }
    
    func (st *HTTPStats) incS3RequestsIncoming() {
    	// Golang automatically resets to zero if this overflows
    	atomic.AddUint64(&st.s3RequestsIncoming, 1)
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Mar 10 09:15:15 GMT 2024
    - 11.4K bytes
    - Viewed (0)
Back to top