Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 815 for fslock (0.08 sec)

  1. src/cmd/compile/internal/ssa/fuse.go

    					v.Pos = v.Pos.WithIsStmt()
    					l = 0
    					break
    				}
    				if l < v.Pos.Line() {
    					// The order of values in a block is not specified so OOO in a block is not interesting,
    					// but they do all come before the end of the block, so this disqualifies attaching to end of b_next.
    					outOfOrder = true
    				}
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:45:54 UTC 2023
    - 9K bytes
    - Viewed (0)
  2. src/cmd/go/internal/cache/hash.go

    	h.Write([]byte(desc))
    	var out ActionID
    	h.Sum(out[:0])
    	if debugHash {
    		fmt.Fprintf(os.Stderr, "HASH subkey %x %q = %x\n", parent, desc, out)
    	}
    	if verify {
    		hashDebug.Lock()
    		hashDebug.m[out] = fmt.Sprintf("subkey %x %q", parent, desc)
    		hashDebug.Unlock()
    	}
    	return out
    }
    
    // NewHash returns a new Hash.
    // The caller is expected to Write data to it and then call Sum.
    func NewHash(name string) *Hash {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 14 16:18:34 UTC 2021
    - 4.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/admission/configuration/configuration_manager.go

    	}
    	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
    	timer := time.NewTimer(a.bootstrapGracePeriod)
    	go func() {
    		defer timer.Stop()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 06 02:02:38 UTC 2017
    - 4.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/util/waitgroup/ratelimited_waitgroup.go

    // when the wait group is in waiting mode.
    func (wg *RateLimitedSafeWaitGroup) Done() {
    	var limiter RateLimiter
    	func() {
    		wg.mu.Lock()
    		defer wg.mu.Unlock()
    
    		wg.count -= 1
    		if wg.wait {
    			// we are using the limiter outside the scope of the lock
    			limiter = wg.limiter
    		}
    	}()
    
    	defer wg.wg.Done()
    	if limiter != nil {
    		limiter.Wait(wg.stopCtx)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 21 14:08:00 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  5. src/internal/poll/file_plan9.go

    	return fdmu.fdmu.increfAndClose()
    }
    
    func (fdmu *FDMutex) ReadLock() bool {
    	return fdmu.fdmu.rwlock(true)
    }
    
    func (fdmu *FDMutex) ReadUnlock() bool {
    	return fdmu.fdmu.rwunlock(true)
    }
    
    func (fdmu *FDMutex) WriteLock() bool {
    	return fdmu.fdmu.rwlock(false)
    }
    
    func (fdmu *FDMutex) WriteUnlock() bool {
    	return fdmu.fdmu.rwunlock(false)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Oct 08 03:57:40 UTC 2022
    - 972 bytes
    - Viewed (0)
  6. hack/tools/go.mod

    	github.com/go-toolsmith/typep v1.1.0 // indirect
    	github.com/go-viper/mapstructure/v2 v2.0.0-alpha.1 // indirect
    	github.com/go-xmlfmt/xmlfmt v1.1.2 // indirect
    	github.com/gobwas/glob v0.2.3 // indirect
    	github.com/gofrs/flock v0.8.1 // indirect
    	github.com/golang/protobuf v1.5.3 // indirect
    	github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2 // indirect
    	github.com/golangci/dupl v0.0.0-20180902072040-3e9179ac440a // indirect
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  7. pilot/pkg/keycertbundle/watcher.go

    func (w *Watcher) AddWatcher() (int32, chan struct{}) {
    	ch := make(chan struct{}, 1)
    	w.mutex.Lock()
    	defer w.mutex.Unlock()
    	id := w.watcherID
    	w.watchers[id] = ch
    	w.watcherID++
    
    	return id, ch
    }
    
    // RemoveWatcher removes the given watcher.
    func (w *Watcher) RemoveWatcher(id int32) {
    	w.mutex.Lock()
    	defer w.mutex.Unlock()
    	ch := w.watchers[id]
    	if ch != nil {
    		close(ch)
    	}
    	delete(w.watchers, id)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 05 14:00:18 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/utils/parallel_execute_util.cc

          cluster_func.getLoc(), 1, output_types);
      cluster_func->remove();
      auto& block = parallel_execute.GetRegionBlockWithIndex(0);
      builder->setInsertionPointToEnd(&block);
      builder->insert(cluster_func);
      cluster_func.replaceAllUsesWith(parallel_execute);
      builder->create<tf_device::ReturnOp>(block.getParent()->getLoc(),
                                           cluster_func.getResults());
      return parallel_execute;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 13 03:57:18 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  9. test/typeparam/lockable.go

    	x  T
    	mu sync.Mutex
    }
    
    // Get returns the value stored in a Lockable.
    func (l *Lockable[T]) get() T {
    	l.mu.Lock()
    	defer l.mu.Unlock()
    	return l.x
    }
    
    // set sets the value in a Lockable.
    func (l *Lockable[T]) set(v T) {
    	l.mu.Lock()
    	defer l.mu.Unlock()
    	l.x = v
    }
    
    func main() {
    	sl := Lockable[string]{x: "a"}
    	if got := sl.get(); got != "a" {
    		panic(got)
    	}
    	sl.set("b")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 916 bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/server/mux/pathrecorder.go

    func (m *PathRecorderMux) NotFoundHandler(notFoundHandler http.Handler) {
    	m.lock.Lock()
    	defer m.lock.Unlock()
    
    	m.notFoundHandler = notFoundHandler
    
    	m.refreshMuxLocked()
    }
    
    // Unregister removes a path from the mux.
    func (m *PathRecorderMux) Unregister(path string) {
    	m.lock.Lock()
    	defer m.lock.Unlock()
    
    	delete(m.pathToHandler, path)
    	delete(m.prefixToHandler, path)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 01:52:15 UTC 2024
    - 8.5K bytes
    - Viewed (0)
Back to top