Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,074 for Unlock1 (0.31 sec)

  1. src/sync/rwmutex_test.go

    			wlocked <- true
    		}
    	}()
    	for i := 0; i < n; i++ {
    		<-rlocked
    		rl.Unlock()
    		select {
    		case <-wlocked:
    			t.Fatal("RLocker() didn't read-lock it")
    		default:
    		}
    		rl.Unlock()
    		<-wlocked
    		select {
    		case <-rlocked:
    			t.Fatal("RLocker() didn't respect the write lock")
    		default:
    		}
    		wl.Unlock()
    	}
    }
    
    func BenchmarkRWMutexUncontended(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 29 17:13:13 UTC 2021
    - 4.9K bytes
    - Viewed (0)
  2. src/cmd/go/internal/lockedfile/internal/filelock/filelock.go

    func Unlock(f File) error {
    	return unlock(f)
    }
    
    // String returns the name of the function corresponding to lt
    // (Lock, RLock, or Unlock).
    func (lt lockType) String() string {
    	switch lt {
    	case readLock:
    		return "RLock"
    	case writeLock:
    		return "Lock"
    	default:
    		return "Unlock"
    	}
    }
    
    // IsNotSupported returns a boolean indicating whether the error is known to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 17 02:24:35 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  3. src/runtime/netpoll_aix.go

    func netpollopen(fd uintptr, pd *pollDesc) int32 {
    	lock(&mtxpoll)
    	netpollwakeup()
    
    	lock(&mtxset)
    	unlock(&mtxpoll)
    
    	// We don't worry about pd.fdseq here,
    	// as mtxset protects us from stale pollDescs.
    
    	pd.user = uint32(len(pfds))
    	pfds = append(pfds, pollfd{fd: int32(fd)})
    	pds = append(pds, pd)
    	unlock(&mtxset)
    	return 0
    }
    
    func netpollclose(fd uintptr) int32 {
    	lock(&mtxpoll)
    	netpollwakeup()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/caching/ConcurrentBuildsCachingIntegrationTest.groovy

        doLast {
            files.files
        }
    }
    task b {
        def files = configurations.b
        doLast {
            files.files
        }
    }
    task block1 {
        doLast {
            ${blockingServer.callFromBuild("block1")}
        }
    }
    block1.mustRunAfter a
    b.mustRunAfter block1
    
    task block2 {
        doLast {
            ${blockingServer.callFromBuild("block2")}
        }
    }
    block2.mustRunAfter b
    """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3K bytes
    - Viewed (0)
  5. cmd/namespace-lock.go

    			delete(n.lockMap, resource)
    		}
    		n.lockMapMutex.Unlock()
    	}
    
    	return
    }
    
    // Unlock the namespace resource.
    func (n *nsLockMap) unlock(volume string, path string, readLock bool) {
    	resource := pathJoin(volume, path)
    
    	n.lockMapMutex.Lock()
    	defer n.lockMapMutex.Unlock()
    	if _, found := n.lockMap[resource]; !found {
    		return
    	}
    	if readLock {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 05 23:56:35 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  6. cmd/lock-rest-client.go

    	return c.call(ctx, lockRPCUnlock, &args)
    }
    
    // ForceUnlock calls force unlock handler to forcibly unlock an active lock.
    func (c *lockRESTClient) ForceUnlock(ctx context.Context, args dsync.LockArgs) (reply bool, err error) {
    	return c.call(ctx, lockRPCForceUnlock, &args)
    }
    
    func newLockAPI(endpoint Endpoint) dsync.NetLocker {
    	if endpoint.IsLocal {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Nov 24 17:07:14 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  7. pkg/test/framework/components/echo/kube/workload.go

    	w.mutex.Lock()
    	defer w.mutex.Unlock()
    
    	if w.isConnected() {
    		return w.disconnect()
    	}
    	return nil
    }
    
    func (w *workload) PodName() string {
    	w.mutex.Lock()
    	n := w.pod.Name
    	w.mutex.Unlock()
    	return n
    }
    
    func (w *workload) Address() string {
    	w.mutex.Lock()
    	ip := w.pod.Status.PodIP
    	w.mutex.Unlock()
    	return ip
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Oct 25 19:46:28 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  8. 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)
  9. src/runtime/lock_sema.go

    					continue Loop
    				}
    			}
    			if v&locked != 0 {
    				// Queued. Wait.
    				semasleep(-1)
    				i = 0
    			}
    		}
    	}
    }
    
    func unlock(l *mutex) {
    	unlockWithRank(l)
    }
    
    // We might not be holding a p in this code.
    //
    //go:nowritebarrier
    func unlock2(l *mutex) {
    	gp := getg()
    	var mp *m
    	for {
    		v := atomic.Loaduintptr(&l.key)
    		if v == locked {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  10. pilot/pkg/serviceregistry/memory/discovery.go

    	}
    	sd.handlers.NotifyServiceHandlers(nil, svc, model.EventDelete)
    	sd.mutex.Unlock()
    }
    
    // AddInstance adds an in-memory instance and notifies the XDS updater
    func (sd *ServiceDiscovery) AddInstance(instance *model.ServiceInstance) {
    	sd.mutex.Lock()
    	defer sd.mutex.Unlock()
    	service := instance.Service.Hostname
    	svc := sd.services[service]
    	if svc == nil {
    		return
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 23:10:01 UTC 2024
    - 12.4K bytes
    - Viewed (0)
Back to top