Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 86 for Loadint32 (0.21 sec)

  1. pkg/controller/volume/persistentvolume/framework_test.go

    			// Let the "main" test function know that syncVolume has finished.
    			atomic.StoreInt32(&testFinished, 1)
    		}()
    
    		// Wait for the controller to finish the test function.
    		for atomic.LoadInt32(&testFinished) == 0 {
    			time.Sleep(time.Millisecond * 10)
    		}
    
    		return testError
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 09:54:00 UTC 2023
    - 38.3K bytes
    - Viewed (0)
  2. src/net/http/client_test.go

    	}
    
    	// And verify that our Body wasn't used multiple times, which
    	// would indicate retries. (as it buggily was during part of
    	// Go 1.8's dev cycle)
    	readCalls := atomic.LoadInt32(&readCallsAtomic)
    	closeCalls := atomic.LoadInt32(&closeCallsAtomic)
    	if readCalls != 1 {
    		t.Errorf("read calls = %d; want 1", readCalls)
    	}
    	if closeCalls != 1 {
    		t.Errorf("close calls = %d; want 1", closeCalls)
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  3. pkg/proxy/winkernel/proxier.go

    	var initialized int32
    	if value {
    		initialized = 1
    	}
    	atomic.StoreInt32(&proxier.initialized, initialized)
    }
    
    func (proxier *Proxier) isInitialized() bool {
    	return atomic.LoadInt32(&proxier.initialized) > 0
    }
    
    // OnServiceAdd is called whenever creation of new service object
    // is observed.
    func (proxier *Proxier) OnServiceAdd(service *v1.Service) {
    	proxier.OnServiceUpdate(nil, service)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 13:25:06 UTC 2024
    - 59K bytes
    - Viewed (0)
  4. cmd/bucket-replication.go

    func (p *ReplicationPool) ActiveWorkers() int {
    	return int(atomic.LoadInt32(&p.activeWorkers))
    }
    
    // ActiveMRFWorkers returns the number of active workers handling replication failures.
    func (p *ReplicationPool) ActiveMRFWorkers() int {
    	return int(atomic.LoadInt32(&p.activeMRFWorkers))
    }
    
    // ResizeWorkers sets replication workers pool to new size.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 114.4K bytes
    - Viewed (0)
  5. pkg/proxy/iptables/proxier.go

    	var initialized int32
    	if value {
    		initialized = 1
    	}
    	atomic.StoreInt32(&proxier.initialized, initialized)
    }
    
    func (proxier *Proxier) isInitialized() bool {
    	return atomic.LoadInt32(&proxier.initialized) > 0
    }
    
    // OnServiceAdd is called whenever creation of new service object
    // is observed.
    func (proxier *Proxier) OnServiceAdd(service *v1.Service) {
    	proxier.OnServiceUpdate(nil, service)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 14:39:54 UTC 2024
    - 65.1K bytes
    - Viewed (0)
  6. pkg/proxy/nftables/proxier.go

    	var initialized int32
    	if value {
    		initialized = 1
    	}
    	atomic.StoreInt32(&proxier.initialized, initialized)
    }
    
    func (proxier *Proxier) isInitialized() bool {
    	return atomic.LoadInt32(&proxier.initialized) > 0
    }
    
    // OnServiceAdd is called whenever creation of new service object
    // is observed.
    func (proxier *Proxier) OnServiceAdd(service *v1.Service) {
    	proxier.OnServiceUpdate(nil, service)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 08 13:48:54 UTC 2024
    - 55.5K bytes
    - Viewed (0)
  7. pkg/proxy/ipvs/proxier.go

    	var initialized int32
    	if value {
    		initialized = 1
    	}
    	atomic.StoreInt32(&proxier.initialized, initialized)
    }
    
    func (proxier *Proxier) isInitialized() bool {
    	return atomic.LoadInt32(&proxier.initialized) > 0
    }
    
    // OnServiceAdd is called whenever creation of new service object is observed.
    func (proxier *Proxier) OnServiceAdd(service *v1.Service) {
    	proxier.OnServiceUpdate(nil, service)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 28 15:51:23 UTC 2024
    - 77.7K bytes
    - Viewed (0)
  8. src/net/http/serve_test.go

    				}
    			}
    			defer res.Body.Close()
    			_, err = io.Copy(io.Discard, res.Body)
    			if err != nil {
    				t.Error(err)
    				return
    			}
    		}()
    	}
    	wg.Wait()
    	if got := atomic.LoadInt32(&n); got != reqs {
    		t.Errorf("handler ran %d times; want %d", got, reqs)
    	}
    }
    
    func TestServerConnStateNew(t *testing.T) {
    	sawNew := false // if the test is buggy, we'll race on this variable.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  9. cmd/xl-storage.go

    	info, err = s.diskInfoCache.GetWithCtx(ctx)
    	info.NRRequests = s.nrRequests
    	info.Rotational = s.rotational
    	info.MountPath = s.drivePath
    	info.Endpoint = s.endpoint.String()
    	info.Scanning = atomic.LoadInt32(&s.scanning) == 1
    	return info, err
    }
    
    // getVolDir - will convert incoming volume names to
    // corresponding valid volume names on the backend in a platform
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 85.3K bytes
    - Viewed (0)
  10. internal/once/init.go

    // call to the function. ie, it invokes the function
    // if it is not successful yet.
    func (l *Init) Do(f func() error) error {
    	if atomic.LoadUint32(&l.done) == 0 {
    		return l.do(f)
    	}
    	return nil
    }
    
    func (l *Init) do(f func() error) error {
    	l.m.Lock()
    	defer l.m.Unlock()
    	if atomic.LoadUint32(&l.done) == 0 {
    		if err := f(); err != nil {
    			return err
    		}
    		// Mark as done only when f() is successful
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 09 04:20:31 UTC 2023
    - 2.1K bytes
    - Viewed (0)
Back to top