Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 283 for waiters (0.23 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/MonitorTestCase.java

      // TODO: Test interrupts with both interruptible and uninterruptible monitor.
      // TODO: Test multiple waiters: If guard is still satisfied, signal next waiter.
      // TODO: Test multiple waiters: If guard is no longer satisfied, do not signal next waiter.
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 26 20:07:17 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/MonitorTestCase.java

      // TODO: Test interrupts with both interruptible and uninterruptible monitor.
      // TODO: Test multiple waiters: If guard is still satisfied, signal next waiter.
      // TODO: Test multiple waiters: If guard is no longer satisfied, do not signal next waiter.
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 26 20:07:17 UTC 2023
    - 8K bytes
    - Viewed (0)
  3. proguard/concurrent.pro

    # Futures.getChecked, in both of its variants, is incompatible with proguard.
    
    # Used by AtomicReferenceFieldUpdater and sun.misc.Unsafe
    -keepclassmembers class com.google.common.util.concurrent.AbstractFuture** {
      *** waiters;
      *** value;
      *** listeners;
      *** thread;
      *** next;
    }
    -keepclassmembers class com.google.common.util.concurrent.AtomicDouble {
      *** value;
    }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 09 00:29:01 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/admission/plugin/resourcequota/controller.go

    	if !evaluator.Handles(a) {
    		return nil
    	}
    	waiter := newAdmissionWaiter(a)
    
    	e.addWork(waiter)
    
    	// wait for completion or timeout
    	select {
    	case <-waiter.finished:
    	case <-time.After(10 * time.Second):
    		return apierrors.NewInternalError(fmt.Errorf("resource quota evaluation timed out"))
    	}
    
    	return waiter.result
    }
    
    func (e *quotaEvaluator) addWork(a *admissionWaiter) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/Monitor.java

        int waiters = guard.waiterCount++;
        if (waiters == 0) {
          // push guard onto activeGuards
          guard.next = activeGuards;
          activeGuards = guard;
        }
      }
    
      /** Records that the current thread is no longer waiting on the specified guard. */
      @GuardedBy("lock")
      private void endWaitingFor(Guard guard) {
        int waiters = --guard.waiterCount;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 18:22:01 UTC 2023
    - 38.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/util/concurrent/Monitor.java

        int waiters = guard.waiterCount++;
        if (waiters == 0) {
          // push guard onto activeGuards
          guard.next = activeGuards;
          activeGuards = guard;
        }
      }
    
      /** Records that the current thread is no longer waiting on the specified guard. */
      @GuardedBy("lock")
      private void endWaitingFor(Guard guard) {
        int waiters = --guard.waiterCount;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 18:22:01 UTC 2023
    - 42.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_progress_test.go

    		return requestsSent == wantRequestsSent
    	}); err != nil {
    		t.Fatalf("Failed to wait progress requests, err: %s, want: %d , got %d", err, wantRequestsSent, requestsSent)
    	}
    
    	logger.Info("Adding waiters allows progress request to be sent")
    	pr.Add()
    	wantRequestsSent++
    	if err := pollConditionNoChange(pollPeriod, minimalNoChange, pollTimeout, func() bool {
    		requestsSent = pr.progressRequestsSentCount.Load()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 11:51:06 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  8. pilot/pkg/xds/pushqueue.go

    		return
    	}
    
    	if request, f := p.pending[con]; f {
    		p.pending[con] = request.CopyMerge(pushRequest)
    		return
    	}
    
    	p.pending[con] = pushRequest
    	p.queue = append(p.queue, con)
    	// Signal waiters on Dequeue that a new item is available
    	p.cond.Signal()
    }
    
    // Remove a proxy from the queue. If there are no proxies ready to be removed, this will block
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Sep 16 01:37:15 UTC 2021
    - 3.8K bytes
    - Viewed (0)
  9. src/cmd/go/internal/lockedfile/internal/filelock/filelock_fcntl.go

    		panic("unlock called on a file that is not locked")
    	}
    
    	err := setlkw(f.Fd(), syscall.F_UNLCK)
    
    	mu.Lock()
    	l := locks[ino]
    	if len(l.queue) == 0 {
    		// No waiters: remove the map entry.
    		delete(locks, ino)
    	} else {
    		// The first waiter is sending us their file now.
    		// Receive it and update the queue.
    		l.owner = <-l.queue[0]
    		l.queue = l.queue[1:]
    		locks[ino] = l
    	}
    	delete(inodes, f)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 17 02:24:35 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  10. src/runtime/chan.go

    	closed   uint32
    	timer    *timer // timer feeding this chan
    	elemtype *_type // element type
    	sendx    uint   // send index
    	recvx    uint   // receive index
    	recvq    waitq  // list of recv waiters
    	sendq    waitq  // list of send waiters
    
    	// lock protects all fields in hchan, as well as several
    	// fields in sudogs blocked on this channel.
    	//
    	// Do not change another G's status while holding this lock
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 25.9K bytes
    - Viewed (0)
Back to top