Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 128 for acquirem (0.15 sec)

  1. pkg/scheduler/framework/runtime/waiting_pods_map.go

    	delete(m.pods, uid)
    }
    
    // get a WaitingPod from the map.
    func (m *waitingPodsMap) get(uid types.UID) *waitingPod {
    	m.mu.RLock()
    	defer m.mu.RUnlock()
    	return m.pods[uid]
    }
    
    // iterate acquires a read lock and iterates over the WaitingPods map.
    func (m *waitingPodsMap) iterate(callback func(framework.WaitingPod)) {
    	m.mu.RLock()
    	defer m.mu.RUnlock()
    	for _, v := range m.pods {
    		callback(v)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/resources/ProjectLeaseRegistry.java

         *
         * <p>This should become the default and only behaviour for all worker threads, and locks are acquired and released only when starting and finishing an execution node.
         * For now, this is an opt-in behaviour.</p>
         */
        <T> T whileDisallowingProjectLockChanges(Factory<T> action);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. cmd/callhome.go

    		return
    	}
    
    	go func() {
    		r := rand.New(rand.NewSource(time.Now().UnixNano()))
    		// Leader node (that successfully acquires the lock inside runCallhome)
    		// will keep performing the callhome. If the leader goes down for some reason,
    		// the lock will be released and another node will acquire it and take over
    		// because of this loop.
    		for {
    			if !globalCallhomeConfig.Enabled() {
    				return
    			}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 17 16:53:34 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  4. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/resources/ResourceLockCoordinationService.java

         * that tells the resource coordinator how to proceed:
         *
         * FINISHED - All locks were acquired, release the state lock
         * FAILED - One or more locks were not acquired, roll back any locks that were acquired and release the state lock
         * RETRY - One or more locks were not acquired, roll back any locks that were acquired and block waiting for the
         * state to change, then run the transform again
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 06:02:18 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  5. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/work/ConditionalExecutionQueue.java

     */
    
    package org.gradle.internal.work;
    
    import org.gradle.internal.concurrent.Stoppable;
    
    /**
     * Represents a queue of executions that can run when a provided resource lock can be acquired.  The typical use case would
     * be that a worker lease must be acquired before execution.
     */
    public interface ConditionalExecutionQueue<T> extends Stoppable {
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  6. src/runtime/tracestatus.go

    	// This saves space in the resulting trace by keeping the counter small and allows
    	// GoStatus and GoCreate events to omit a sequence number (implicitly 0).
    	seq [2]uint64
    }
    
    // acquireStatus acquires the right to emit a Status event for the scheduling resource.
    func (r *traceSchedResourceState) acquireStatus(gen uintptr) bool {
    	if !r.statusTraced[gen%3].CompareAndSwap(0, 1) {
    		return false
    	}
    	r.readyNextGen(gen)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:03:35 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  7. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/ExclusiveCacheAccessCoordinator.java

    import java.util.function.Supplier;
    
    /**
     * Provides synchronised access to a cache.
     */
    public interface ExclusiveCacheAccessCoordinator {
        /**
         * Performs some work against the cache. Acquires exclusive locks on the appropriate resources, so that the given action is the only action to execute across all processes (including this one). Releases the locks and all resources at the end of the action.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:50 UTC 2024
    - 3K bytes
    - Viewed (0)
  8. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/filelock/FileLockOutcome.java

        };
    
        public boolean isLockWasAcquired() {
            return false;
        }
    
        public FileLock getFileLock() {
            throw new IllegalStateException("Lock was not acquired");
        }
    
        static FileLockOutcome acquired(FileLock fileLock) {
            return new FileLockOutcome() {
                @Override
                public boolean isLockWasAcquired() {
                    return true;
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  9. pkg/util/flock/flock_other.go

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package flock
    
    // Acquire is not implemented on non-unix systems.
    func Acquire(path string) error {
    	return nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 826 bytes
    - Viewed (0)
  10. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/work/Synchronizer.java

         *
         * Fails if the current thread is already holding the resource lock. May release project locks prior to blocking, as per {@link WorkerLeaseService#blocking(Runnable)}.
         */
        void withLock(Runnable action);
    
        /**
         * Runs the given action while holding the associated resource lock, blocking until the lock can be acquired.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 1.4K bytes
    - Viewed (0)
Back to top