Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for pushHead (0.23 sec)

  1. 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)
  2. 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)
  3. 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)
  4. .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)
  5. 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)
  6. 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)
  7. src/cmd/link/testdata/linkname/p/p.go

    // Copyright 2024 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package p
    
    import _ "unsafe"
    
    // f1 is pushed from main.
    //
    //go:linkname f1
    func f1()
    
    // Push f2 to main.
    //
    //go:linkname f2 main.f2
    func f2() {}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:05:33 UTC 2024
    - 328 bytes
    - Viewed (0)
  8. .github/PULL_REQUEST_TEMPLATE.md

    - [ ] Check ["Allow edit from maintainers" option](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) in pull request so that additional changes can be pushed by Gradle team.
    - [ ] Provide integration tests (under `<subproject>/src/integTest`) to verify changes from a user perspective.
    - [ ] Provide unit tests (under `<subproject>/src/test`) to verify logic.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 13 22:36:19 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  9. pilot/pkg/xds/pcds.go

    	if !pcdsNeedsPush(req) {
    		return nil, model.DefaultXdsLogDetails, nil
    	}
    	if e.TrustBundle == nil {
    		return nil, model.DefaultXdsLogDetails, nil
    	}
    	// TODO: For now, only TrustBundle updates are pushed. Eventually, this should push entire Proxy Configuration
    	pc := &mesh.ProxyConfig{
    		CaCertificatesPem: e.TrustBundle.GetTrustBundle(),
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jan 16 18:25:42 UTC 2024
    - 2K bytes
    - Viewed (0)
  10. pkg/kubelet/config/mux.go

    	// one source is defined.
    	Merge(source string, update interface{}) error
    }
    
    // mux is a class for merging configuration from multiple sources.  Changes are
    // pushed via channels and sent to the merge function.
    type mux struct {
    	// Invoked when an update is sent to a source.
    	merger merger
    
    	// Sources and their lock.
    	sourceLock sync.RWMutex
    	// Maps source names to channels
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jan 30 20:02:23 UTC 2024
    - 2.3K bytes
    - Viewed (0)
Back to top