- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 92 for unlock2 (0.16 sec)
-
src/runtime/mprof.go
// into the profile. // // The M will collect the call stack when it unlocks the contended lock. That // minimizes the impact on the critical section of the contended lock, and // matches the mutex profile's behavior for contention in sync.Mutex: measured // at the Unlock method. // // The profile for contention on sync.Mutex blames the caller of Unlock for the // amount of contention experienced by the callers of Lock which had to wait.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:57:37 UTC 2024 - 53.3K bytes - Viewed (0) -
pkg/volume/testing/testing.go
plugin.RLock() defer plugin.RUnlock() return plugin.Mounters } func (plugin *FakeVolumePlugin) NewUnmounter(volName string, podUID types.UID) (volume.Unmounter, error) { plugin.Lock() defer plugin.Unlock() fakeVolume := plugin.getFakeVolume(&plugin.Unmounters) fakeVolume.Lock() defer fakeVolume.Unlock() fakeVolume.PodUID = podUID fakeVolume.VolName = volName
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 12:32:15 UTC 2024 - 53.3K bytes - Viewed (0) -
cmd/iam-store.go
// concurrently reading and writing the IAM storage. The (r)lock() // functions return the iamCache. The cache can be safely written to // only when returned by `lock()`. lock() *iamCache unlock() rlock() *iamCache runlock() getUsersSysType() UsersSysType loadPolicyDoc(ctx context.Context, policy string, m map[string]PolicyDoc) error
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Jun 13 22:26:38 UTC 2024 - 75.8K bytes - Viewed (0) -
src/testing/testing.go
c.mu.Lock() if c.running < c.maxParallel { c.running++ c.mu.Unlock() return } c.numWaiting++ c.mu.Unlock() <-c.startParallel } func (c *testContext) release() { c.mu.Lock() if c.numWaiting == 0 { c.running-- c.mu.Unlock() return } c.numWaiting-- c.mu.Unlock() c.startParallel <- true // Pick a waiting test to be run. }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 76.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go
c.stopLock.RLock() defer c.stopLock.RUnlock() return c.stopped } // Stop implements the graceful termination. func (c *Cacher) Stop() { c.stopLock.Lock() if c.stopped { // avoid stopping twice (note: cachers are shared with subresources) c.stopLock.Unlock() return } c.stopped = true c.ready.stop() c.stopLock.Unlock() close(c.stopCh) c.stopWg.Wait() }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 10:12:02 UTC 2024 - 51.8K bytes - Viewed (0) -
pkg/controller/podautoscaler/horizontal.go
a.recommendationsLock.Lock() delete(a.recommendations, key) a.recommendationsLock.Unlock() a.scaleUpEventsLock.Lock() delete(a.scaleUpEvents, key) a.scaleUpEventsLock.Unlock() a.scaleDownEventsLock.Lock() delete(a.scaleDownEvents, key) a.scaleDownEventsLock.Unlock() return true, nil } if err != nil { return false, err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 63.6K bytes - Viewed (0) -
pkg/scheduler/internal/queue/scheduling_queue.go
func (p *PriorityQueue) Close() { p.lock.Lock() defer p.lock.Unlock() close(p.stop) p.closed = true p.cond.Broadcast() } // DeleteNominatedPodIfExists deletes <pod> from nominatedPods. func (npm *nominator) DeleteNominatedPodIfExists(pod *v1.Pod) { npm.lock.Lock() npm.deleteNominatedPodIfExistsUnlocked(pod) npm.lock.Unlock() }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 61.4K bytes - Viewed (0) -
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) -
cmd/batch-handlers.go
} } m.RUnlock() for _, jobID := range toDeleteJobMetrics { m.delete(jobID) } } } } func (m *batchJobMetrics) delete(jobID string) { m.Lock() defer m.Unlock() delete(m.metrics, jobID) } func (m *batchJobMetrics) save(jobID string, ri *batchJobInfo) { m.Lock() defer m.Unlock() m.metrics[jobID] = ri.clone() }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Jun 11 03:13:30 UTC 2024 - 56K bytes - Viewed (0) -
cmd/erasure-server-pool.go
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu May 30 11:58:12 UTC 2024 - 82.5K bytes - Viewed (0)