Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 177 for clocks (0.09 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. 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)
  3. 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)
  4. 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)
  5. 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)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/SendPartialResponseThenBlock.java

        private final Lock lock;
        private final Duration timeout;
        private final Condition condition;
        private final WaitPrecondition precondition;
        private boolean requestStarted;
        private boolean released;
        private final Clock clock = Time.clock();
        private long mostRecentEvent;
        private AssertionError failure;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/internal/work/AsyncWorkTracker.java

         *
         * @param operation - The build operation whose asynchronous work should be completed
         * @param lockRetention - How project locks should be treated while waiting on work
         */
        void waitForCompletion(BuildOperationRef operation, ProjectLockRetention lockRetention);
    
        /**
         * Blocks waiting for the completion of the specified items of asynchronous work.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 11:22:05 UTC 2024
    - 3K bytes
    - Viewed (0)
  8. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/concurrent/TestExecutor.groovy

    package org.gradle.test.fixtures.concurrent
    
    import java.util.concurrent.Executor
    import java.util.concurrent.locks.Condition
    import java.util.concurrent.locks.Lock
    import java.util.concurrent.locks.ReentrantLock
    
    class TestExecutor implements Executor {
        private final Lock lock = new ReentrantLock()
        private final Condition condition = lock.newCondition()
        private final Set<Thread> threads = new HashSet<Thread>()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  9. src/crypto/aes/block.go

    //	https://csrc.nist.gov/csrc/media/publications/fips/197/final/documents/fips-197.pdf
    //	https://csrc.nist.gov/archive/aes/rijndael/Rijndael-ammended.pdf
    
    package aes
    
    import "internal/byteorder"
    
    // Encrypt one block from src into dst, using the expanded key xk.
    func encryptBlockGo(xk []uint32, dst, src []byte) {
    	_ = src[15] // early bounds check
    	s0 := byteorder.BeUint32(src[0:4])
    	s1 := byteorder.BeUint32(src[4:8])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  10. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/FileLockManager.java

         * released by calling {@link FileLock#close()}. This method blocks until the lock can be acquired.
         * <p>
         * Enable other processes to request access to the provided lock. Provided action runs when the lock access request is received
         * (it means that the lock is contended).
         *
         * @param target The file to be locked.
         * @param options The lock options.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:51 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top