- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 31 for dequeue0 (0.18 sec)
-
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/fifo_list_test.go
arrival := []*request{{}, {}, {}, {}, {}, {}} list := newRequestFIFO() for i := range arrival { list.Enqueue(arrival[i]) } dequeued := make([]*request, 0) for list.Length() > 0 { req, _ := list.Dequeue() dequeued = append(dequeued, req) } verifyOrder(t, arrival, dequeued) } func TestFIFOWithEnqueueDequeueSomeRequestsRemainInQueue(t *testing.T) { list := newRequestFIFO()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jul 28 08:48:40 UTC 2022 - 7.8K bytes - Viewed (0) -
pkg/controller/deployment/progress.go
// requeueStuckDeployment checks whether the provided deployment needs to be synced for a progress // check. It returns the time after the deployment will be requeued for the progress check, 0 if it // will be requeued now, or -1 if it does not need to be requeued. func (dc *DeploymentController) requeueStuckDeployment(ctx context.Context, d *apps.Deployment, newStatus apps.DeploymentStatus) time.Duration { logger := klog.FromContext(ctx)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 13 11:00:44 UTC 2023 - 8.9K bytes - Viewed (0) -
src/runtime/sema_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 21 19:37:22 UTC 2022 - 4.2K bytes - Viewed (0) -
src/sync/poolqueue.go
// // This is implemented as a doubly-linked list queue of poolDequeues // where each dequeue is double the size of the previous one. Once a // dequeue fills up, this allocates a new one and only ever pushes to // the latest dequeue. Pops happen from the other end of the list and // once a dequeue is exhausted, it gets removed from the list. type poolChain struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 18:12:29 UTC 2024 - 8.3K bytes - Viewed (0) -
src/runtime/lock_sema.go
if v == locked { if atomic.Casuintptr(&l.key, locked, 0) { break } } else { // Other M's are waiting for the lock. // Dequeue an M. mp = muintptr(v &^ locked).ptr() if atomic.Casuintptr(&l.key, v, uintptr(mp.nextwaitm)) { // Dequeued an M. Wake it. semawakeup(mp) break } } } gp.m.mLockProfile.recordUnlock(l) gp.m.locks-- if gp.m.locks < 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:57:37 UTC 2024 - 6.8K bytes - Viewed (0) -
pilot/pkg/xds/pushqueue_test.go
done := make(chan *Connection, 1) go func() { con, _, _ := p.Dequeue() done <- con }() select { case ret := <-done: return ret case <-time.After(time.Millisecond * 500): return nil } } func ExpectTimeout(t *testing.T, p *PushQueue) { t.Helper() done := make(chan struct{}, 1) go func() { p.Dequeue() done <- struct{}{} }() select { case <-done:
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 30 00:26:45 UTC 2024 - 8.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/fifo_list.go
// returns a removeFromFIFOFunc function that can be used to remove the // request from the list Enqueue(*request) removeFromFIFOFunc // Dequeue pulls out the oldest request from the list. Dequeue() (*request, bool) // Peek returns the oldest request without removing it. Peek() (*request, bool) // Length returns the number of requests in the list. Length() int
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 20 16:05:53 UTC 2021 - 3.9K bytes - Viewed (0) -
src/internal/fuzz/queue_test.go
want := 0 for _, r := range []int{1, 2, 3, 5, 8, 13, 21} { s := make([]int, 0, r) for i := 0; i < r; i++ { if got, ok := q.dequeue(); !ok { t.Fatalf("after removing %d of %d elements, could not dequeue", i+1, r) } else if got != want { t.Fatalf("after removing %d of %d elements, got %d; want %d", i+1, r, got, want) } else { s = append(s, got.(int)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 02 17:58:51 UTC 2021 - 1.6K bytes - Viewed (0) -
pilot/pkg/xds/pushqueue.go
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 func (p *PushQueue) Dequeue() (con *Connection, request *model.PushRequest, shutdown bool) { p.cond.L.Lock() defer p.cond.L.Unlock()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Sep 16 01:37:15 UTC 2021 - 3.8K bytes - Viewed (0) -
.github/workflows/team-triage-stale.yml
name: 'Requeue stale team-triage items' on: schedule: # Execute every day at 00:05 to avoid conflicts with other workflows - cron: '5 0 * * *' permissions: {} jobs: requeue: permissions: issues: write pull-requests: write runs-on: ubuntu-latest steps: - uses: actions/stale@v9 with: operations-per-run: 50 remove-stale-when-updated: false
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 02 09:13:16 UTC 2024 - 835 bytes - Viewed (0)