Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 264 for waiters (3.24 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. src/syscall/syscall_linux_test.go

    			// needed, based on the number of available
    			// unlocked OS threads at the time waiter
    			// calls runtime.LockOSThread(), but the goal
    			// of doing this every time through the loop
    			// is to race thread creation with v.fn(want)
    			// being executed. Via the once boolean we
    			// also encourage one in 5 waiters to return
    			// locked after participating in only one
    			// question response sequence. This allows the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23K bytes
    - Viewed (0)
  10. src/runtime/runtime2.go

    	// because c was closed.
    	success bool
    
    	// waiters is a count of semaRoot waiting list other than head of list,
    	// clamped to a uint16 to fit in unused space.
    	// Only meaningful at the head of the list.
    	// (If we wanted to be overly clever, we could store a high 16 bits
    	// in the second entry in the list.)
    	waiters uint16
    
    	parent   *sudog // semaRoot binary tree
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 47.9K bytes
    - Viewed (0)
Back to top