- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 1,230 for unlock2 (0.15 sec)
-
src/syscall/env_unix.go
} envLock.Lock() defer envLock.Unlock() i, ok := env[key] kv := key + "=" + value if ok { envs[i] = kv } else { i = len(envs) envs = append(envs, kv) } env[key] = i runtimeSetenv(key, value) return nil } func Clearenv() { envOnce.Do(copyenv) // prevent copyenv in Getenv/Setenv envLock.Lock() defer envLock.Unlock() for k := range env {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 06 20:58:35 UTC 2023 - 2.7K bytes - Viewed (0) -
internal/dsync/locker.go
// Do read unlock for given LockArgs. It should return // * a boolean to indicate success/failure of the operation // * an error on failure of unlock request operation. // Canceling the context will abort the remote call. // In that case, the resource may or may not be unlocked. RUnlock(ctx context.Context, args LockArgs) (bool, error) // Do write unlock for given LockArgs. It should return
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Jan 18 20:44:38 UTC 2022 - 2.7K bytes - Viewed (0) -
prepare_stmt.go
db.Mux.RUnlock() // wait for other goroutines prepared <-stmt.prepared if stmt.prepareErr != nil { return Stmt{}, stmt.prepareErr } return *stmt, nil } db.Mux.RUnlock() db.Mux.Lock() // double check if stmt, ok := db.Stmts[query]; ok && (!stmt.Transaction || isTransaction) { db.Mux.Unlock() // wait for other goroutines prepared <-stmt.prepared
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Thu Mar 28 08:47:39 UTC 2024 - 6.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/quota/v1/generic/registry.go
r.lock.Lock() defer r.lock.Unlock() r.evaluators[e.GroupResource()] = e } func (r *simpleRegistry) Remove(e quota.Evaluator) { r.lock.Lock() defer r.lock.Unlock() delete(r.evaluators, e.GroupResource()) } func (r *simpleRegistry) Get(gr schema.GroupResource) quota.Evaluator { r.lock.RLock() defer r.lock.RUnlock() return r.evaluators[gr] }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 04 12:53:52 UTC 2020 - 2.2K bytes - Viewed (0) -
operator/pkg/cache/cache.go
objectCachesMu.RLock() objectCache := objectCaches[name] objectCachesMu.RUnlock() if objectCache != nil { objectCache.Mu.Lock() delete(objectCache.Cache, objHash) objectCache.Mu.Unlock() } } // RemoveCache removes the object Cache with the give name. func RemoveCache(name string) { objectCachesMu.Lock() defer objectCachesMu.Unlock() delete(objectCaches, name)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Dec 06 13:12:49 UTC 2023 - 2.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/configuration/configuration_manager.go
bootstrapGracePeriod: defaultBootstrapGraceperiod, } return &p } func (a *poller) lastError(err error) { a.lock.Lock() defer a.lock.Unlock() a.lastErr = err } func (a *poller) notReady() { a.lock.Lock() defer a.lock.Unlock() a.ready = false } func (a *poller) bootstrapping() { // bootstrapGracePeriod is read-only, so no lock is required
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 06 02:02:38 UTC 2017 - 4.3K bytes - Viewed (0) -
cmd/tier.go
} func (t *tierMetrics) logSuccess(tier string) { t.Lock() defer t.Unlock() stat := t.requestsCount[tier] stat.success++ t.requestsCount[tier] = stat } func (t *tierMetrics) logFailure(tier string) { t.Lock() defer t.Unlock() stat := t.requestsCount[tier] stat.failure++ t.requestsCount[tier] = stat } var (
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu May 09 08:44:07 UTC 2024 - 15.5K bytes - Viewed (0) -
pkg/filewatcher/worker.go
ft := wk.watchedFiles[path] if ft == nil { wk.mu.Unlock() return fmt.Errorf("path %s not found", path) } delete(wk.watchedFiles, path) wk.mu.Unlock() wk.retireTrackerCh <- ft return nil } func (wk *worker) eventChannel(path string) chan fsnotify.Event { wk.mu.RLock() defer wk.mu.RUnlock() if ft := wk.watchedFiles[path]; ft != nil { return ft.events }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Mar 12 22:31:06 UTC 2024 - 5.2K bytes - Viewed (0) -
pilot/pkg/trustbundle/trustbundle.go
tb.endpointMutex.RLock() remoteEndpoints := tb.endpoints tb.endpointMutex.RUnlock() if slices.Equal(spiffeEndpoints, remoteEndpoints) { return } trustBundleLog.Infof("updated remote endpoints :%v", spiffeEndpoints) tb.endpointMutex.Lock() tb.endpoints = spiffeEndpoints tb.endpointMutex.Unlock() tb.endpointUpdateChan <- struct{}{} }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 7.8K bytes - Viewed (0) -
pkg/kubelet/volumemanager/cache/actual_state_of_world.go
asw.Lock() defer asw.Unlock() volumeObj, ok := asw.attachedVolumes[volumeName] if ok { volumeObj.persistentVolumeSize = claimSize asw.attachedVolumes[volumeName] = volumeObj return true } return false } func (asw *actualStateOfWorld) MarkRemountRequired( podName volumetypes.UniquePodName) { asw.Lock() defer asw.Unlock()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 09 07:34:33 UTC 2024 - 45.8K bytes - Viewed (0)