Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 120 for pushHead (0.16 sec)

  1. src/sync/export_test.go

    	return d
    }
    
    func (d *poolDequeue) PushHead(val any) bool {
    	return d.pushHead(val)
    }
    
    func (d *poolDequeue) PopHead() (any, bool) {
    	return d.popHead()
    }
    
    func (d *poolDequeue) PopTail() (any, bool) {
    	return d.popTail()
    }
    
    func NewPoolChain() PoolDequeue {
    	return new(poolChain)
    }
    
    func (c *poolChain) PushHead(val any) bool {
    	c.pushHead(val)
    	return true
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 16:39:52 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  2. src/sync/poolqueue.go

    	const mask = 1<<dequeueBits - 1
    	return (uint64(head) << dequeueBits) |
    		uint64(tail&mask)
    }
    
    // pushHead adds val at the head of the queue. It returns false if the
    // queue is full. It must only be called by a single producer.
    func (d *poolDequeue) pushHead(val any) bool {
    	ptrs := d.headTail.Load()
    	head, tail := d.unpack(ptrs)
    	if (tail+uint32(len(d.vals)))&(1<<dequeueBits-1) == head {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 18:12:29 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  3. src/sync/pool_test.go

    						runtime.Gosched()
    					}
    				}
    			}
    			wg.Done()
    		}()
    	}
    
    	// Start 1 producer.
    	nPopHead := 0
    	wg.Add(1)
    	go func() {
    		for j := 0; j < N; j++ {
    			for !d.PushHead(j) {
    				// Allow a popper to run.
    				runtime.Gosched()
    			}
    			if j%10 == 0 {
    				val, ok := d.PopHead()
    				if ok {
    					nPopHead++
    					record(val.(int))
    				}
    			}
    		}
    		wg.Done()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8K bytes
    - Viewed (0)
  4. src/sync/pool.go

    	New func() any
    }
    
    // Local per-P Pool appendix.
    type poolLocalInternal struct {
    	private any       // Can be used only by the respective P.
    	shared  poolChain // Local P can pushHead/popHead; any P can popTail.
    }
    
    type poolLocal struct {
    	poolLocalInternal
    
    	// Prevents false sharing on widespread platforms with
    	// 128 mod (cache line size) = 0 .
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/resolver/ConcurrentGroupingQueue.kt

    import java.util.concurrent.locks.ReentrantLock
    
    import kotlin.concurrent.withLock
    
    
    /**
     * A queue that gives priority to the most recently pushed element.
     */
    internal
    class ConcurrentGroupingQueue<T>(
    
        /**
         * Predicate to check whether the given most recently pushed element (the receiver)
         * supersedes the given less recent element (the argument).
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. .github/workflows/notify-on-rc-for-manual-test.yml

                  "blocks": [
                    {
                      "type": "section",
                      "text": {
                        "type": "mrkdwn",
                        "text": "<https://github.com/gradle/gradle/${{ github.event.ref }}|[gradle/gradle#${{ github.event.ref }}]> has been pushed"
                      }
                    }
                  ]
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 02 09:13:16 UTC 2024
    - 1K bytes
    - Viewed (0)
  7. src/cmd/link/testdata/linkname/push.go

    // "Push" linknames are ok.
    
    package main
    
    import (
    	"cmd/link/testdata/linkname/p"
    	_ "unsafe"
    )
    
    // Push f1 to p.
    //
    //go:linkname f1 cmd/link/testdata/linkname/p.f1
    func f1() { f2() }
    
    // f2 is pushed from p.
    //
    //go:linkname f2
    func f2()
    
    func main() {
    	p.F()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:05:33 UTC 2024
    - 426 bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/http2/PushObserver.kt

     *
     * As a stream ID is scoped to a single HTTP/2 connection, implementations which target multiple
     * connections should expect repetition of stream IDs.
     *
     * Return true to request cancellation of a pushed stream.  Note that this does not guarantee
     * future frames won't arrive on the stream ID.
     */
    interface PushObserver {
      /**
       * Describes the request that the server intends to push a response for.
       *
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  9. src/runtime/mkpreempt.go

    	p("CALL ·asyncPreempt2(SB)")
    	l.restore()
    
    	p("MOVD %d(RSP), R30", l.stack) // sigctxt.pushCall has pushed LR (at interrupt) on stack, restore it
    	p("MOVD -8(RSP), R29")          // restore frame pointer
    	p("MOVD (RSP), R27")            // load PC to REGTMP
    	p("ADD $%d, RSP", l.stack+16)   // pop frame (including the space pushed by sigctxt.pushCall)
    	p("JMP (R27)")
    }
    
    func genMIPS(_64bit bool) {
    	mov := "MOVW"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 17:19:36 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  10. releasenotes/notes/istiod-config-size-bytes.yaml

    apiVersion: release-notes/v2
    kind: feature
    area: traffic-management
    issue:
      - 31772
    releaseNotes:
    - |
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 14 00:22:23 UTC 2021
    - 208 bytes
    - Viewed (0)
Back to top