Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 596 for fslock (0.12 sec)

  1. pkg/controller/servicecidrs/servicecidrs_controller.go

    func (c *Controller) canDeleteCIDR(ctx context.Context, serviceCIDR *networkingapiv1alpha1.ServiceCIDR) (bool, error) {
    	// TODO(aojea) Revisit the lock usage and if we need to keep it only for the tree operations
    	// to avoid holding it during the whole operation.
    	c.muTree.Lock()
    	defer c.muTree.Unlock()
    	logger := klog.FromContext(ctx)
    	// Check if there is a subnet that already contains the ServiceCIDR that is going to be deleted.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 18K bytes
    - Viewed (0)
  2. src/runtime/time.go

    // The caller must not hold t's lock nor any timers heap lock.
    // The caller probably just unlocked t, but that lock must be dropped
    // in order to acquire a ts.lock, to avoid lock inversions.
    // (timers.adjust holds ts.lock while acquiring each t's lock,
    // so we cannot hold any t's lock while acquiring ts.lock).
    //
    // Strictly speaking it *might* be okay to hold t.lock and
    // acquire ts.lock at the same time, because we know that
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 14:36:24 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  3. src/runtime/syscall_windows.go

    import (
    	"internal/abi"
    	"internal/goarch"
    	"unsafe"
    )
    
    // cbs stores all registered Go callbacks.
    var cbs struct {
    	lock  mutex // use cbsLock / cbsUnlock for race instrumentation.
    	ctxt  [cb_max]winCallback
    	index map[winCallbackKey]int
    	n     int
    }
    
    func cbsLock() {
    	lock(&cbs.lock)
    	// compileCallback is used by goenvs prior to completion of schedinit.
    	// raceacquire involves a racecallback to get the proc, which is not
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  4. src/runtime/netpoll_solaris.go

    }
    
    // subscribe the fd to the port such that port_getn will return one event.
    func netpollarm(pd *pollDesc, mode int) {
    	lock(&pd.lock)
    	switch mode {
    	case 'r':
    		netpollupdate(pd, _POLLIN, 0)
    	case 'w':
    		netpollupdate(pd, _POLLOUT, 0)
    	default:
    		throw("runtime: bad mode")
    	}
    	unlock(&pd.lock)
    }
    
    // netpollBreak interrupts a port_getn wait.
    func netpollBreak() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  5. pkg/queue/instance_test.go

    	defer close(stop)
    
    	wg := sync.WaitGroup{}
    	wg.Add(numValues)
    	mu := sync.Mutex{}
    	out := make([]int, 0)
    	for i := 0; i < numValues; i++ {
    		i := i
    
    		q.Push(func() error {
    			mu.Lock()
    			out = append(out, i)
    			defer mu.Unlock()
    			wg.Done()
    			return nil
    		})
    
    		// Start the queue at the halfway point.
    		if i == numValues/2 {
    			go q.Run(stop)
    		}
    	}
    
    	// wait for all task processed
    	wg.Wait()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jul 21 16:30:36 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  6. src/syscall/syscall_openbsd.go

    //sys	Fchdir(fd int) (err error)
    //sys	Fchflags(fd int, flags int) (err error)
    //sys	Fchmod(fd int, mode uint32) (err error)
    //sys	Fchown(fd int, uid int, gid int) (err error)
    //sys	Flock(fd int, how int) (err error)
    //sys	Fpathconf(fd int, name int) (val int, err error)
    //sys	Fstat(fd int, stat *Stat_t) (err error)
    //sys	Fstatfs(fd int, stat *Statfs_t) (err error)
    //sys	Fsync(fd int) (err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 10:34:00 UTC 2023
    - 7K bytes
    - Viewed (0)
  7. src/html/template/template.go

    	if t == nil {
    		return nil
    	}
    	t.nameSpace.mu.Lock()
    	defer t.nameSpace.mu.Unlock()
    	if t.nameSpace.escaped {
    		return fmt.Errorf("html/template: cannot Parse after Execute")
    	}
    	return nil
    }
    
    // escape escapes all associated templates.
    func (t *Template) escape() error {
    	t.nameSpace.mu.Lock()
    	defer t.nameSpace.mu.Unlock()
    	t.nameSpace.escaped = true
    	if t.escapeErr == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 21:00:46 UTC 2024
    - 17K bytes
    - Viewed (0)
  8. src/syscall/syscall_netbsd.go

    //sys	Dup2(from int, to int) (err error)
    //sys	Fchdir(fd int) (err error)
    //sys	Fchflags(fd int, flags int) (err error)
    //sys	Fchmod(fd int, mode uint32) (err error)
    //sys	Fchown(fd int, uid int, gid int) (err error)
    //sys	Flock(fd int, how int) (err error)
    //sys	Fpathconf(fd int, name int) (val int, err error)
    //sys	Fstat(fd int, stat *Stat_t) (err error)
    //sys	Fsync(fd int) (err error)
    //sys	Ftruncate(fd int, length int64) (err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 18:12:35 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  9. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/resources/ExclusiveAccessResourceLockTest.groovy

            when:
            resourceLock.tryLock()
    
            then:
            thrown(IllegalStateException)
    
            when:
            resourceLock.unlock()
    
            then:
            thrown(IllegalStateException)
        }
    
        def "can lock and unlock a resource"() {
            when:
            coordinationService.withStateLock(tryLock(resourceLock))
    
            then:
            resourceLock.doIsLocked()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  10. cmd/erasure-multipart.go

    	if opts.CheckPrecondFn != nil {
    		if !opts.NoLock {
    			ns := er.NewNSLock(bucket, object)
    			lkctx, err := ns.GetLock(ctx, globalOperationTimeout)
    			if err != nil {
    				return nil, err
    			}
    			ctx = lkctx.Context()
    			defer ns.Unlock(lkctx)
    			opts.NoLock = true
    		}
    
    		obj, err := er.getObjectInfo(ctx, bucket, object, opts)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 44.8K bytes
    - Viewed (0)
Back to top