Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 1,230 for unlock2 (0.12 sec)

  1. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/work/DefaultWorkerLeaseServiceWorkerLeaseTest.groovy

                    registry.runAsWorkerThread {
                        thread.block()
                        instant.unlocked
                        coordinationService.withStateLock(unlock(resource))
                    }
                }
            }
    
            then:
            instant.worker1Finished > instant.unlocked
        }
    
        def "does not release worker lease when replacing locks and locks can be acquired without blocking"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  2. subprojects/core/src/testFixtures/groovy/org/gradle/util/internal/MultithreadedTestRule.java

                }
            } finally {
                lock.unlock();
            }
        }
    
        @After
        public void waitForStop() {
            lock.lock();
            try {
                stopped = true;
            } finally {
                lock.unlock();
            }
            waitForAll();
        }
    
        @Override
        protected void after() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 23.3K bytes
    - Viewed (0)
  3. cmd/admin-heal-ops.go

    			select {
    			// Check after a second
    			case <-time.After(time.Second):
    				h.mutex.Unlock()
    				continue
    
    			case <-h.ctx.Done():
    				h.mutex.Unlock()
    				// discard result and return.
    				return errHealStopSignalled
    
    			// Timeout if no results consumed for too long.
    			case <-unconsumedTimer.C:
    				h.mutex.Unlock()
    				return errHealIdleTimeout
    			}
    		}
    		break
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 09 18:04:41 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  4. src/go/internal/gccgoimporter/testdata/issue30628.gox

     func (rw <type 4>) RUnlock ()
     func (rw <type 4>) Unlock ()
     func (rw <type 4>) RLock ()
    type 4 *<type 3>
    type 5 "sync.Locker" <type 6>
    type 6 interface { Lock (); Unlock (); }
    type 7 struct { .sync.w <type 8>; .sync.writerSem <type -7>; .sync.readerSem <type -7>; .sync.readerCount <type -3>; .sync.readerWait <type -3>; }
    type 8 "sync.Mutex" <type 10>
     func (m <type 9>) Unlock ()
     func (m <type 9>) Lock ()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 20:50:13 UTC 2019
    - 1.4K bytes
    - Viewed (0)
  5. pkg/volume/csi/csi_drivers_store.go

    // This method is protected by a mutex.
    func (s *DriversStore) Delete(driverName string) {
    	s.Lock()
    	defer s.Unlock()
    
    	delete(s.store, driverName)
    }
    
    // Clear deletes all entries in the store.
    // This methiod is protected by a mutex.
    func (s *DriversStore) Clear() {
    	s.Lock()
    	defer s.Unlock()
    
    	s.store = store{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 16 11:12:06 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  6. cmd/http-stats.go

    	if stats == nil {
    		return
    	}
    	stats.Lock()
    	defer stats.Unlock()
    	if stats.apiStats == nil {
    		stats.apiStats = make(map[string]int)
    	}
    	stats.apiStats[api]++
    }
    
    // Dec increments the api stats counter.
    func (stats *HTTPAPIStats) Dec(api string) {
    	if stats == nil {
    		return
    	}
    	stats.Lock()
    	defer stats.Unlock()
    	if val, ok := stats.apiStats[api]; ok && val > 0 {
    		stats.apiStats[api]--
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 15 06:25:13 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  7. pkg/filewatcher/filewatcher.go

    func (fw *fileWatcher) Close() error {
    	fw.mu.Lock()
    	defer fw.mu.Unlock()
    
    	for _, ws := range fw.workers {
    		ws.worker.terminate()
    	}
    	fw.workers = nil
    
    	return nil
    }
    
    // Add a path to watch
    func (fw *fileWatcher) Add(path string) error {
    	fw.mu.Lock()
    	defer fw.mu.Unlock()
    
    	ws, cleanedPath, _, err := fw.getWorker(path)
    	if err != nil {
    		return err
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  8. src/runtime/time.go

    func (t *timer) lock() {
    	lock(&t.mu)
    	t.trace("lock")
    }
    
    // unlock updates t.astate and unlocks the timer.
    func (t *timer) unlock() {
    	t.trace("unlock")
    	// Let heap fast paths know whether heap[i].when is accurate.
    	// Also let maybeRunChan know whether channel is in heap.
    	t.astate.Store(t.state)
    	unlock(&t.mu)
    }
    
    // hchan returns the channel in t.arg.
    // t must be a timer with a channel.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 14:36:24 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  9. cmd/lock-rest-client_test.go

    	if err == nil {
    		t.Fatal("Expected for Lock to fail")
    	}
    
    	_, err = lkClient.RUnlock(context.Background(), dsync.LockArgs{})
    	if err == nil {
    		t.Fatal("Expected for RUnlock to fail")
    	}
    
    	_, err = lkClient.Unlock(context.Background(), dsync.LockArgs{})
    	if err == nil {
    		t.Fatal("Expected for Unlock to fail")
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Nov 21 01:09:35 UTC 2023
    - 2K bytes
    - Viewed (0)
  10. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/resources/DefaultResourceLockCoordinationService.java

            return tryLock(Arrays.asList(resourceLocks));
        }
    
        /**
         * Unlocks the provided resource locks.
         */
        public static InternalTransformer<ResourceLockState.Disposition, ResourceLockState> unlock(Iterable<? extends ResourceLock> resourceLocks) {
            return new ReleaseLocks(resourceLocks);
        }
    
        /**
         * Unlocks the provided resource locks.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 17:16:10 UTC 2024
    - 11.9K bytes
    - Viewed (0)
Back to top