Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 680 for clocks (0.28 sec)

  1. platforms/core-runtime/time/src/main/java/org/gradle/internal/time/MonotonicClock.java

     * in between syncs with the system wall clock.
     * When issuing the first timestamp after the sync interval has expired,
     * The system wall clock will be read, and the current time set to the max of wall clock time or the most recently issued timestamp.
     * All other timestamps are calculated as the wall clock time at last sync + elapsed time since.
     * <p>
     * This clock deals relatively well when the system wall clock shift is adjusted by small amounts.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:20:17 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/wait/timer.go

    	if t.t == nil {
    		return
    	}
    	t.t.Stop()
    	t.t = nil
    }
    
    var (
    	// RealTimer can be passed to methods that need a clock.Timer.
    	RealTimer = clock.RealClock{}.NewTimer
    )
    
    var (
    	// internalClock is used for test injection of clocks
    	internalClock = clock.RealClock{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 19:14:11 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  3. src/cmd/internal/obj/x86/evex.go

    }
    
    // inferSuffixError returns non-nil error that describes what could be
    // the cause of suffix parse failure.
    //
    // At the point this function is executed there is already assembly error,
    // so we can burn some clocks to construct good error message.
    //
    // Reported issues:
    //   - duplicated suffixes
    //   - illegal rounding/SAE+broadcast combinations
    //   - unknown suffixes
    //   - misplaced suffix (e.g. wrong Z suffix position)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 9.3K bytes
    - Viewed (0)
  4. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/streams/DefaultValueStoreTest.groovy

        }
    
        def "can write and then read a block multiple times"() {
            expect:
            def block = write("test")
            read(block) == "test"
            read(block) == "test"
            read(block) == "test"
        }
    
        def "can write multiple blocks and read in any order"() {
            expect:
            def block1 = write("test 1")
            def block2 = write("test 2")
            def block3 = write("test 3")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  5. platforms/core-runtime/time/src/main/java/org/gradle/internal/time/Clock.java

    import org.gradle.internal.service.scopes.Scope;
    import org.gradle.internal.service.scopes.ServiceScope;
    
    /**
     * A device for obtaining the current time.
     *
     * @see Time#clock()
     */
    @ServiceScope(Scope.Global.class)
    public interface Clock {
    
        /**
         * The current time in millis.
         */
        long getCurrentTime();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 00:47:05 UTC 2024
    - 974 bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/connection/Locks.kt

    import okhttp3.internal.http2.Http2Stream
    import okhttp3.internal.http2.Http2Writer
    
    /**
     * Centralisation of central locks according to docs/contribute/concurrency.md
     */
    internal object Locks {
      inline fun <T> Dispatcher.withLock(action: () -> T): T {
        contract { callsInPlace(action, InvocationKind.EXACTLY_ONCE) }
        return lock.withLock(action)
      }
    
      inline fun <T> RealConnection.withLock(action: () -> T): T {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  7. src/crypto/des/block.go

    	b1 = block & 0x0f0f00000f0f0000
    	b2 = block & 0x0000f0f00000f0f0
    	block ^= b1 ^ b2 ^ b1>>12 ^ b2<<12
    
    	b1 = block >> 32 & 0xff00ff
    	b2 = (block & 0xff00ff00)
    	block ^= b1<<32 ^ b2 ^ b1<<8 ^ b2<<24
    
    	b1 = block >> 48
    	b2 = block << 48
    	block ^= b1 ^ b2 ^ b1<<48 ^ b2>>48
    	return block
    }
    
    // creates 16 28-bit blocks rotated according
    // to the rotation schedule.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  8. src/cmd/go/internal/lockedfile/internal/filelock/filelock_fcntl.go

    	//
    	// 	P.1 locks file A.
    	// 	Q.3 locks file B.
    	// 	Q.3 blocks on file A.
    	// 	P.2 blocks on file B. (This is erroneously reported as a deadlock.)
    	// 	P.1 unlocks file A.
    	// 	Q.3 unblocks and locks file A.
    	// 	Q.3 unlocks files A and B.
    	// 	P.2 unblocks and locks file B.
    	// 	P.2 unlocks file B.
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 17 02:24:35 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  9. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/work/WorkerLeaseService.java

         * Runs a given {@link Factory} while the specified locks are being held, releasing
         * the locks upon completion.  Blocks until the specified locks can be obtained.
         */
        <T> T withLocks(Collection<? extends ResourceLock> locks, Factory<T> factory);
    
        /**
         * Runs a given {@link Runnable} while the specified locks are being held, releasing
         * the locks upon completion.  Blocks until the specified locks can be obtained.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 06:02:18 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  10. 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)
Back to top