Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 102 for Unlock1 (0.13 sec)

  1. 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)
  2. src/sync/rwmutex.go

    		rw.w.Unlock()
    		if race.Enabled {
    			race.Enable()
    		}
    		return false
    	}
    	if race.Enabled {
    		race.Enable()
    		race.Acquire(unsafe.Pointer(&rw.readerSem))
    		race.Acquire(unsafe.Pointer(&rw.writerSem))
    	}
    	return true
    }
    
    // Unlock unlocks rw for writing. It is a run-time error if rw is
    // not locked for writing on entry to Unlock.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  3. src/sync/mutex.go

    	if race.Enabled {
    		race.Acquire(unsafe.Pointer(m))
    	}
    }
    
    // Unlock unlocks m.
    // It is a run-time error if m is not locked on entry to Unlock.
    //
    // A locked [Mutex] is not associated with a particular goroutine.
    // It is allowed for one goroutine to lock a Mutex and then
    // arrange for another goroutine to unlock it.
    func (m *Mutex) Unlock() {
    	if race.Enabled {
    		_ = m.state
    		race.Release(unsafe.Pointer(m))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/watch/watch.go

    	f.Lock()
    	defer f.Unlock()
    	if !f.stopped {
    		klog.V(4).Infof("Stopping fake watcher.")
    		close(f.result)
    		f.stopped = true
    	}
    }
    
    func (f *FakeWatcher) IsStopped() bool {
    	f.Lock()
    	defer f.Unlock()
    	return f.stopped
    }
    
    // Reset prepares the watcher to be reused.
    func (f *FakeWatcher) Reset() {
    	f.Lock()
    	defer f.Unlock()
    	f.stopped = false
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 20:06:22 UTC 2024
    - 8.1K bytes
    - Viewed (1)
  5. pkg/kubelet/util/manager/watch_based_manager.go

    	c.lock.Lock()
    	defer c.lock.Unlock()
    	err := c.Store.Replace(list, resourceVersion)
    	if err != nil {
    		return err
    	}
    	c.initialized = true
    	return nil
    }
    
    func (c *cacheStore) hasSynced() bool {
    	c.lock.Lock()
    	defer c.lock.Unlock()
    	return c.initialized
    }
    
    func (c *cacheStore) unsetInitialized() {
    	c.lock.Lock()
    	defer c.lock.Unlock()
    	c.initialized = false
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  6. pkg/kubelet/pluginmanager/plugin_manager_test.go

    	f.Lock()
    	defer f.Unlock()
    	f.events = append(f.events, "validate "+pluginName)
    	return nil
    }
    
    // RegisterPlugin is a fake method
    func (f *fakePluginHandler) RegisterPlugin(pluginName, endpoint string, versions []string, pluginClientTimeout *time.Duration) error {
    	f.Lock()
    	defer f.Unlock()
    	f.events = append(f.events, "register "+pluginName)
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  7. pkg/test/framework/components/istio/configmap.go

    		ic.mu.Lock()
    		ic.injectConfig = myic
    		ic.mu.Unlock()
    	}
    
    	return myic, nil
    }
    
    func (ic *injectConfig) UpdateInjectionConfig(t resource.Context, update func(*inject.Config) error, cleanupStrategy cleanup.Strategy) error {
    	// Invalidate the member variable. The next time it's requested, it will get a fresh value.
    	ic.mu.Lock()
    	ic.injectConfig = nil
    	ic.mu.Unlock()
    
    	errG := multierror.Group{}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  8. pkg/kubelet/pod_workers_test.go

    	f.statusLock.Lock()
    	defer f.statusLock.Unlock()
    	return f.terminated[uid]
    }
    func (f *fakePodWorkers) CouldHaveRunningContainers(uid types.UID) bool {
    	f.statusLock.Lock()
    	defer f.statusLock.Unlock()
    	return f.running[uid]
    }
    func (f *fakePodWorkers) ShouldPodBeFinished(uid types.UID) bool {
    	f.statusLock.Lock()
    	defer f.statusLock.Unlock()
    	return f.finished[uid]
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 75.6K bytes
    - Viewed (0)
  9. internal/grid/muxclient.go

    	}
    	if m.subroute != nil {
    		msg.Flags |= FlagSubroute
    	}
    	ch := make(chan Response, 1)
    	m.respMu.Lock()
    	if m.closed {
    		m.respMu.Unlock()
    		return nil, ErrDisconnected
    	}
    	m.respWait = ch
    	m.respMu.Unlock()
    	ctx := m.ctx
    
    	// Add deadline if none.
    	if msg.DeadlineMS == 0 {
    		msg.DeadlineMS = uint32(defaultSingleRequestTimeout / time.Millisecond)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  10. cmd/background-newdisks-heal-ops.go

    }
    
    func (h *healingTracker) setBucket(bucket string) {
    	h.mu.Lock()
    	defer h.mu.Unlock()
    
    	h.Bucket = bucket
    }
    
    func (h *healingTracker) getObject() string {
    	h.mu.RLock()
    	defer h.mu.RUnlock()
    
    	return h.Object
    }
    
    func (h *healingTracker) setObject(object string) {
    	h.mu.Lock()
    	defer h.mu.Unlock()
    
    	h.Object = object
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 04 15:12:32 UTC 2024
    - 14.5K bytes
    - Viewed (0)
Back to top