Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 664 for unlock2 (0.11 sec)

  1. pkg/scheduler/framework/runtime/waiting_pods_map.go

    	m.mu.Lock()
    	defer m.mu.Unlock()
    	m.pods[wp.GetPod().UID] = wp
    }
    
    // remove a WaitingPod from the map.
    func (m *waitingPodsMap) remove(uid types.UID) {
    	m.mu.Lock()
    	defer m.mu.Unlock()
    	delete(m.pods, uid)
    }
    
    // get a WaitingPod from the map.
    func (m *waitingPodsMap) get(uid types.UID) *waitingPod {
    	m.mu.RLock()
    	defer m.mu.RUnlock()
    	return m.pods[uid]
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  2. src/sync/cond.go

    // Wait returns. Instead, the caller should Wait in a loop:
    //
    //	c.L.Lock()
    //	for !condition() {
    //	    c.Wait()
    //	}
    //	... make use of condition ...
    //	c.L.Unlock()
    func (c *Cond) Wait() {
    	c.checker.check()
    	t := runtime_notifyListAdd(&c.notify)
    	c.L.Unlock()
    	runtime_notifyListWait(&c.notify, t)
    	c.L.Lock()
    }
    
    // Signal wakes one goroutine waiting on c, if there is any.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. src/runtime/chan.go

    	gp.parkingOnChan.Store(false)
    	// Make sure we unlock after setting activeStackChans and
    	// unsetting parkingOnChan. The moment we unlock chanLock
    	// we risk gp getting readied by a channel operation and
    	// so gp could continue running before everything before
    	// the unlock is visible (even to gp itself).
    	unlock((*mutex)(chanLock))
    	return true
    }
    
    // compiler implements
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  4. pkg/kubelet/runtime.go

    	defer s.Unlock()
    	s.runtimeError = err
    }
    
    func (s *runtimeState) setRuntimeHandlers(rtHandlers []kubecontainer.RuntimeHandler) {
    	s.Lock()
    	defer s.Unlock()
    	s.rtHandlers = rtHandlers
    }
    
    func (s *runtimeState) runtimeHandlers() []kubecontainer.RuntimeHandler {
    	s.RLock()
    	defer s.RUnlock()
    	return s.rtHandlers
    }
    
    func (s *runtimeState) setStorageState(err error) {
    	s.Lock()
    	defer s.Unlock()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 09 00:48:07 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/endpoints/discovery/aggregated/fake.go

    	f.lock.RLock()
    	defer f.lock.RUnlock()
    
    	f.expect.lock.RLock()
    	defer f.expect.lock.RUnlock()
    
    	return len(f.Actions) >= len(f.expect.Actions)
    }
    
    func (f *fakeResourceManager) Validate() error {
    	f.lock.RLock()
    	defer f.lock.RUnlock()
    
    	f.expect.lock.RLock()
    	defer f.expect.lock.RUnlock()
    
    	if !reflect.DeepEqual(f.expect.Actions, f.Actions) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 18:15:22 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. internal/bucket/bandwidth/monitor.go

    	m.tlock.Unlock()
    	m.mlock.Lock()
    	delete(m.bucketsMeasurement, BucketOptions{Name: bucket, ReplicationARN: arn})
    	m.mlock.Unlock()
    }
    
    // throttle returns currently configured throttle for this bucket
    func (m *Monitor) throttle(opts BucketOptions) *bucketThrottle {
    	m.tlock.RLock()
    	defer m.tlock.RUnlock()
    	return m.bucketsThrottle[opts]
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 19 22:54:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. cmd/bucket-targets.go

    	sys.aMutex.Lock()
    	defer sys.aMutex.Unlock()
    	if v, ok := sys.arnErrsMap[arn]; !ok {
    		sys.arnErrsMap[arn] = arnErrs{
    			updateInProgress: true,
    			count:            v.count + 1,
    			bucket:           bucket,
    		}
    	}
    }
    
    func (sys *BucketTargetSys) markRefreshDone(bucket, arn string) {
    	sys.aMutex.Lock()
    	defer sys.aMutex.Unlock()
    	if v, ok := sys.arnErrsMap[arn]; ok {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 01 01:09:56 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  8. pkg/kubelet/pod/testing/fake_mirror_client.go

    	fmc.mirrorPodLock.RLock()
    	defer fmc.mirrorPodLock.RUnlock()
    	return fmc.mirrorPods.Has(podFullName)
    }
    
    func (fmc *FakeMirrorClient) NumOfPods() int {
    	fmc.mirrorPodLock.RLock()
    	defer fmc.mirrorPodLock.RUnlock()
    	return fmc.mirrorPods.Len()
    }
    
    func (fmc *FakeMirrorClient) GetPods() []string {
    	fmc.mirrorPodLock.RLock()
    	defer fmc.mirrorPodLock.RUnlock()
    	return sets.List(fmc.mirrorPods)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  9. src/sync/map_reference_test.go

    	value, loaded = m.dirty[key]
    	if !loaded {
    		m.mu.Unlock()
    		return nil, false
    	}
    	delete(m.dirty, key)
    	m.mu.Unlock()
    	return value, loaded
    }
    
    func (m *RWMutexMap) Delete(key any) {
    	m.mu.Lock()
    	delete(m.dirty, key)
    	m.mu.Unlock()
    }
    
    func (m *RWMutexMap) CompareAndSwap(key, old, new any) (swapped bool) {
    	m.mu.Lock()
    	defer m.mu.Unlock()
    	if m.dirty == nil {
    		return false
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 01 15:34:22 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  10. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/LockOnDemandCrossProcessCacheAccess.java

                }
                releaseLockIfHeld();
            } finally {
                stateLock.unlock();
            }
        }
    
        @Override
        public <T> T withFileLock(Supplier<T> factory) {
            incrementLockCount();
            try {
                return factory.get();
            } finally {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:51 UTC 2024
    - 6.7K bytes
    - Viewed (0)
Back to top