Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,166 for clock5 (1.28 sec)

  1. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

      // Now load a different block of file "a" at timestamp `now` + 1. When the
      // first block of "a" expires, this block should also be removed because it
      // also belongs to file "a".
      TF_EXPECT_OK(ReadCache(&cache, "a", 8, 1, &out));
      // Ensure that all blocks are in the cache (i.e. reads are cache hits).
      EXPECT_EQ(cache.CacheSize(), 24);
      EXPECT_EQ(calls, 3);
      TF_EXPECT_OK(ReadCache(&cache, "a", 0, 1, &out));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Oct 15 03:16:57 UTC 2021
    - 23.2K bytes
    - Viewed (0)
  2. pilot/pkg/leaderelection/k8sleaderelection/leaderelection.go

    	// value observedRecord.HolderIdentity if the transition has
    	// not yet been reported.
    	reportedLeader string
    
    	// clock is wrapper around time to allow for less flaky testing
    	clock clock.Clock
    
    	// used to lock the observedRecord
    	observedRecordLock sync.Mutex
    
    	metrics leaderMetricsAdapter
    }
    
    // Run starts the leader election loop. Run will not return
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 24 04:04:42 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  3. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/btree/BTreePersistentIndexedCache.java

                }
            });
    
            for (int i = 0; i < blocks.size() - 1; i++) {
                Block b1 = blocks.get(i).getBlock();
                Block b2 = blocks.get(i + 1).getBlock();
                if (b1.getPos().getPos() + b1.getSize() > b2.getPos().getPos()) {
                    throw new IOException(String.format("%s overlaps with %s", b1, b2));
                }
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 26.5K bytes
    - Viewed (0)
  4. src/cmd/cover/cover.go

    		return
    	}
    	// Self-check: Verify that the instrumented basic blocks are disjoint.
    	t := make([]block1, len(f.blocks))
    	for i := range f.blocks {
    		t[i].Block = f.blocks[i]
    		t[i].index = i
    	}
    	sort.Sort(blockSlice(t))
    	for i := 1; i < len(t); i++ {
    		if t[i-1].endByte > t[i].startByte {
    			fmt.Fprintf(os.Stderr, "cover: internal error: block %d overlaps block %d\n", t[i-1].index, t[i].index)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  5. internal/dsync/lock-args.go

    // LockArgs is minimal required values for any dsync compatible lock operation.
    type LockArgs struct {
    	// Unique ID of lock/unlock request.
    	UID string
    
    	// Resources contains single or multiple entries to be locked/unlocked.
    	Resources []string
    
    	// Source contains the line number, function and file name of the code
    	// on the client node that requested the lock.
    	Source string
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 04:34:26 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  6. src/runtime/runtime.go

    const minTimeForTicksPerSecond = 5_000_000*(1-osHasLowResClockInt) + 100_000_000*osHasLowResClockInt
    
    // ticksPerSecond returns a conversion rate between the cputicks clock and the nanotime clock.
    //
    // Note: Clocks are hard. Using this as an actual conversion rate for timestamps is ill-advised
    // and should be avoided when possible. Use only for durations, where a tiny error term isn't going
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/telemetry/package-lock.json

    Michael Matloob <******@****.***> 1708031260 -0500
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:57:25 UTC 2024
    - 156K bytes
    - Viewed (0)
  8. cmd/namespace-lock.go

    	timeout.LogSuccess(UTCNow().Sub(start))
    	return LockContext{ctx: newCtx, cancel: cancel}, nil
    }
    
    // Unlock - block until write lock is released.
    func (di *distLockInstance) Unlock(lc LockContext) {
    	if lc.cancel != nil {
    		lc.cancel()
    	}
    	di.rwMutex.Unlock(lc.ctx)
    }
    
    // RLock - block until read lock is taken or timeout has occurred.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 05 23:56:35 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/server/filters/priority-and-fairness.go

    //     (b) a request whose context has no deadline
    //
    // clock comes in handy for testing the function
    func getRequestWaitContext(ctx context.Context, defaultRequestWaitLimit time.Duration, clock utilsclock.PassiveClock) (context.Context, context.CancelFunc) {
    	if ctx.Err() != nil {
    		return ctx, func() {}
    	}
    
    	reqArrivedAt := clock.Now()
    	if reqReceivedTimestamp, ok := apirequest.ReceivedTimestampFrom(ctx); ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:35 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/server/egressselector/metrics/metrics.go

    	legacyregistry.MustRegister(failures)
    	return &DialMetrics{starts: starts, latencies: latencies, failures: failures, clock: clock.RealClock{}}
    }
    
    // Clock returns the clock.
    func (m *DialMetrics) Clock() clock.Clock {
    	return m.clock
    }
    
    // SetClock sets the clock.
    func (m *DialMetrics) SetClock(c clock.Clock) {
    	m.clock = c
    }
    
    // Reset resets the metrics.
    func (m *DialMetrics) Reset() {
    	m.starts.Reset()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 01 23:36:51 UTC 2022
    - 4.3K bytes
    - Viewed (0)
Back to top