Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for PushBack (0.2 sec)

  1. test/typeparam/list2.go

    	var l _List[int]
    	l.PushBack(1)
    	l.PushBack(2)
    	l.PushBack(3)
    	l.InsertBefore(1, new(_Element[int]))
    	checkList(&l, []interface{}{1, 2, 3})
    }
    
    // Test that a list l is not modified when calling InsertAfter with a mark that is not an element of l.
    func TestInsertAfterUnknownMark() {
    	var l _List[int]
    	l.PushBack(1)
    	l.PushBack(2)
    	l.PushBack(3)
    	l.InsertAfter(1, new(_Element[int]))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  2. platforms/native/language-native/src/main/java/org/gradle/language/nativeplatform/internal/incremental/sourceparser/PreprocessingReader.java

                if (followingChar == '\n') {
                    return true; // '\\\r\n' discarded from stream
                }
                pushBack(nextChar);
                pushBack(followingChar);
                return false;
            } else {
                pushBack(nextChar);
                return false;
            }
        }
    
        private int next() throws IOException {
            if (readAheadChars[0] != -1) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/debug_lines_test.go

    	default:
    		t.Skip("skipped for many architectures")
    
    	case "arm64", "amd64": // register ABI
    		fn := "(*List[go.shape.int_0]).PushBack"
    		if true /* was buildcfg.Experiment.Unified */ {
    			// Unified mangles differently
    			fn = "(*List[go.shape.int]).PushBack"
    		}
    		testDebugLines(t, "-N -l", "pushback.go", fn, []int{17, 18, 19, 20, 21, 22, 24}, true)
    	}
    }
    
    func TestDebugLinesConvert(t *testing.T) {
    	unixOnly(t)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 20:24:52 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sync/semaphore/semaphore.go

    		// Don't make other Acquire calls block on one that's doomed to fail.
    		s.mu.Unlock()
    		<-done
    		return ctx.Err()
    	}
    
    	ready := make(chan struct{})
    	w := waiter{n: n, ready: ready}
    	elem := s.waiters.PushBack(w)
    	s.mu.Unlock()
    
    	select {
    	case <-done:
    		s.mu.Lock()
    		select {
    		case <-ready:
    			// Acquired the semaphore after we were canceled.
    			// Pretend we didn't and put the tokens back.
    			s.cur -= n
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  5. src/net/http/transport.go

    	tail    []*wantConn
    }
    
    // len returns the number of items in the queue.
    func (q *wantConnQueue) len() int {
    	return len(q.head) - q.headPos + len(q.tail)
    }
    
    // pushBack adds w to the back of the queue.
    func (q *wantConnQueue) pushBack(w *wantConn) {
    	q.tail = append(q.tail, w)
    }
    
    // popFront removes and returns the wantConn at the front of the queue.
    func (q *wantConnQueue) popFront() *wantConn {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
  6. src/runtime/mgcmark.go

    	// lock.
    	if atomic.Load(&gcBlackenEnabled) == 0 {
    		unlock(&work.assistQueue.lock)
    		return true
    	}
    
    	gp := getg()
    	oldList := work.assistQueue.q
    	work.assistQueue.q.pushBack(gp)
    
    	// Recheck for background credit now that this G is in
    	// the queue, but can still back out. This avoids a
    	// race in case background marking has flushed more
    	// credit since we checked above.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 21:25:11 UTC 2024
    - 52.5K bytes
    - Viewed (0)
  7. pkg/scheduler/internal/queue/scheduling_queue.go

    	}
    	pInfo := obj.(*framework.QueuedPodInfo)
    	pInfo.Attempts++
    	p.schedulingCycle++
    	// In flight, no concurrent events yet.
    	if p.isSchedulingQueueHintEnabled {
    		p.inFlightPods[pInfo.Pod.UID] = p.inFlightEvents.PushBack(pInfo.Pod)
    	}
    
    	// Update metrics and reset the set of unschedulable plugins for the next attempt.
    	for plugin := range pInfo.UnschedulablePlugins.Union(pInfo.PendingPlugins) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 61.4K bytes
    - Viewed (0)
  8. src/runtime/proc.go

    }
    
    // push adds gp to the head of q.
    func (q *gQueue) push(gp *g) {
    	gp.schedlink = q.head
    	q.head.set(gp)
    	if q.tail == 0 {
    		q.tail.set(gp)
    	}
    }
    
    // pushBack adds gp to the tail of q.
    func (q *gQueue) pushBack(gp *g) {
    	gp.schedlink = 0
    	if q.tail != 0 {
    		q.tail.ptr().schedlink.set(gp)
    	} else {
    		q.head.set(gp)
    	}
    	q.tail.set(gp)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  9. src/net/http/h2_bundle.go

    		return http2errClientDisconnected
    	}
    }
    
    // writeFrame schedules a frame to write and sends it if there's nothing
    // already being written.
    //
    // There is no pushback here (the serve goroutine never blocks). It's
    // the http.Handlers that block, waiting for their previous frames to
    // make it onto the wire
    //
    // If you're not on the serve goroutine, use writeFrameFromHandler instead.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 364.1K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(*List).Len", Method, 0},
    		{"(*List).MoveAfter", Method, 2},
    		{"(*List).MoveBefore", Method, 2},
    		{"(*List).MoveToBack", Method, 0},
    		{"(*List).MoveToFront", Method, 0},
    		{"(*List).PushBack", Method, 0},
    		{"(*List).PushBackList", Method, 0},
    		{"(*List).PushFront", Method, 0},
    		{"(*List).PushFrontList", Method, 0},
    		{"(*List).Remove", Method, 0},
    		{"Element", Type, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top