Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 2,460 for syncs (0.08 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/options/authorizationconfig/metrics/metrics.go

    			StabilityLevel: metrics.ALPHA,
    		},
    		[]string{"status", "apiserver_id_hash"},
    	)
    )
    
    var registerMetrics sync.Once
    var hashPool *sync.Pool
    
    func RegisterMetrics() {
    	registerMetrics.Do(func() {
    		hashPool = &sync.Pool{
    			New: func() interface{} {
    				return sha256.New()
    			},
    		}
    		legacyregistry.MustRegister(authorizationConfigAutomaticReloadsTotal)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 13:20:59 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r26/TestLauncherCancellationCrossVersionSpec.groovy

                build.withCancellationToken(cancel.token())
                build.run(resultHandler)
                sync.waitForAllPendingCalls(resultHandler)
                cancel.cancel()
                sync.releaseAll()
                resultHandler.finished()
            }
    
            then:
            buildWasCancelled(resultHandler, 'Could not execute tests using')
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  3. pkg/controller/nodeipam/ipam/sync/sync_test.go

    		cidr, _ := cidrset.NewCIDRSet(clusterCIDRRange, 24)
    		tc.fake.logger = logger
    		sync := New(&tc.fake, &tc.fake, &tc.fake, tc.mode, "node1", cidr)
    		doneChan := make(chan struct{})
    
    		// Do a single step of the loop.
    		go sync.Loop(logger, doneChan)
    		sync.Update(tc.node)
    		close(sync.opChan)
    		<-doneChan
    		tc.fake.dumpTrace()
    
    		if !reflect.DeepEqual(tc.fake.events, tc.events) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 05 23:39:52 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  4. tests/test_dependency_contextmanager.py

        yield state["/async"]
        state["/async"] = "asyncgen completed"
    
    
    def generator_state(state: Dict[str, str] = Depends(get_state)):
        state["/sync"] = "generator started"
        yield state["/sync"]
        state["/sync"] = "generator completed"
    
    
    async def asyncgen_state_try(state: Dict[str, str] = Depends(get_state)):
        state["/async_raise"] = "asyncgen raise started"
        try:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r25/TestProgressDaemonErrorsCrossVersionSpec.groovy

            given:
            goodCode()
            def sync = server.expectAndBlock('sync')
    
            when:
            def result = []
            withConnection { ProjectConnection connection ->
                connection.newBuild().forTasks('test').addProgressListener({ ProgressEvent event ->
                    result << event
                    if (!killed) {
                        sync.waitForAllPendingCalls()
                        sync.releaseAll()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r25/ContinuousBuildCancellationCrossVersionSpec.groovy

        def "client can cancel during execution of a continuous build"() {
            given:
            setupCancellationBuild()
            def sync = server.expectAndBlock('sync')
    
            when:
            runBuild {
                sync.waitForAllPendingCalls()
                cancellationTokenSource.cancel()
                sync.releaseAll()
            }
    
            then:
            assert buildResult.failure instanceof BuildCancelledException
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  7. pkg/scheduler/metrics/metric_recorder_test.go

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package metrics
    
    import (
    	"sync"
    	"sync/atomic"
    	"testing"
    )
    
    var _ MetricRecorder = &fakePodsRecorder{}
    
    type fakePodsRecorder struct {
    	counter int64
    }
    
    func (r *fakePodsRecorder) Inc() {
    	atomic.AddInt64(&r.counter, 1)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 09 00:51:07 UTC 2019
    - 2.2K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/mod/sumdb/cache.go

    // Parallel cache.
    // This file is copied from cmd/go/internal/par.
    
    package sumdb
    
    import (
    	"sync"
    	"sync/atomic"
    )
    
    // parCache runs an action once per key and caches the result.
    type parCache struct {
    	m sync.Map
    }
    
    type cacheEntry struct {
    	done   uint32
    	mu     sync.Mutex
    	result interface{}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 29 20:10:15 UTC 2019
    - 1.5K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/testsanitizers/testdata/tsan7.go

    /*
    #cgo CFLAGS: -fsanitize=thread
    #cgo LDFLAGS: -fsanitize=thread
    */
    import "C"
    
    import (
    	"fmt"
    	"os"
    	"sync"
    	"time"
    )
    
    func main() {
    	var wg sync.WaitGroup
    	var mu sync.Mutex
    	f := func() {
    		defer wg.Done()
    		for i := 0; i < 100; i++ {
    			time.Sleep(time.Microsecond)
    			mu.Lock()
    			s := fmt.Sprint(i)
    			os.Setenv("TSAN_TEST"+s, s)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 708 bytes
    - Viewed (0)
  10. pilot/pkg/config/memory/monitor.go

    func newBufferedMonitor(store model.ConfigStore, bufferSize int, sync bool) Monitor {
    	handlers := make(map[config2.GroupVersionKind][]Handler)
    
    	for _, s := range store.Schemas().All() {
    		handlers[s.GroupVersionKind()] = make([]Handler, 0)
    	}
    
    	return &configStoreMonitor{
    		store:    store,
    		handlers: handlers,
    		eventCh:  make(chan ConfigEvent, bufferSize),
    		sync:     sync,
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 3.3K bytes
    - Viewed (0)
Back to top