Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 81 for nanotime (0.13 sec)

  1. src/runtime/proc_test.go

    		}
    	}
    }
    
    // fakeSyscall emulates a system call.
    //
    //go:nosplit
    func fakeSyscall(duration time.Duration) {
    	runtime.Entersyscall()
    	for start := runtime.Nanotime(); runtime.Nanotime()-start < int64(duration); {
    	}
    	runtime.Exitsyscall()
    }
    
    // Check that a goroutine will be preempted if it is calling short system calls.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 25.8K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

      private val cleanupQueue: TaskQueue = taskRunner.newQueue()
      private val cleanupTask =
        object : Task("$okHttpName ConnectionPool connection closer") {
          override fun runOnce(): Long = closeConnections(System.nanoTime())
        }
    
      private fun AddressState.scheduleOpener() {
        queue.schedule(
          object : Task("$okHttpName ConnectionPool connection opener") {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  3. src/runtime/crash_test.go

    		}
    	}
    }
    
    func TestTimePprof(t *testing.T) {
    	// This test is unreliable on any system in which nanotime
    	// calls into libc.
    	switch runtime.GOOS {
    	case "aix", "darwin", "illumos", "openbsd", "solaris":
    		t.Skipf("skipping on %s because nanotime calls libc", runtime.GOOS)
    	}
    
    	// Pass GOTRACEBACK for issue #41120 to try to get more
    	// information on timeout.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 19:46:10 UTC 2024
    - 27K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

        val index = calls.indexOfFirst { it.get() == this@RealCall }
        check(index != -1)
    
        calls.removeAt(index)
        this.connection = null
    
        if (calls.isEmpty()) {
          connection.idleAtNs = System.nanoTime()
          if (connectionPool.connectionBecameIdle(connection)) {
            return connection.socket()
          }
        }
    
        return null
      }
    
      private fun <E : IOException?> timeoutExit(cause: E): E {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Suppliers.java

          // the extra memory consumption and indirection are more
          // expensive than the extra volatile reads.
          long nanos = expirationNanos;
          long now = System.nanoTime();
          if (nanos == 0 || now - nanos >= 0) {
            synchronized (this) {
              if (nanos == expirationNanos) { // recheck for lost race
                T t = delegate.get();
                value = t;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  6. src/runtime/runtime2.go

    	// gcController.findRunnableGCWorker. When scheduling other goroutines,
    	// this field must be set to gcMarkWorkerNotWorker.
    	gcMarkWorkerMode gcMarkWorkerMode
    	// gcMarkWorkerStartTime is the nanotime() at which the most recent
    	// mark worker started.
    	gcMarkWorkerStartTime int64
    
    	// gcw is this P's GC work buffer cache. The work buffer is
    	// filled by write barriers, drained by mutator assists, and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 47.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

        // loop.
    
        try {
          // Record exceptions so that if we fail to obtain any
          // result, we can throw the last exception we got.
          ExecutionException ee = null;
          long lastTime = timed ? System.nanoTime() : 0;
          Iterator<? extends Callable<T>> it = tasks.iterator();
    
          futures.add(submitAndAddQueueListener(executorService, it.next(), futureQueue));
          --ntasks;
          int active = 1;
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 15 10:40:05 UTC 2024
    - 39K bytes
    - Viewed (0)
  8. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/ConcurrentTestUtil.groovy

                    sleepTime = Math.min(250, (long) (sleepTime * 1.2))
                    Thread.sleep(sleepTime)
                }
            }
        }
    
        static long monotonicClockMillis() {
            System.nanoTime() / 1000000L
        }
    
        static long toMillis(double seconds) {
            return (long) (seconds * 1000)
        }
    
        void setShortTimeout(int millis) {
            this.timeout = millis
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/util/concurrent/MoreExecutors.java

        // loop.
    
        try {
          // Record exceptions so that if we fail to obtain any
          // result, we can throw the last exception we got.
          ExecutionException ee = null;
          long lastTime = timed ? System.nanoTime() : 0;
          Iterator<? extends Callable<T>> it = tasks.iterator();
    
          futures.add(submitAndAddQueueListener(executorService, it.next(), futureQueue));
          --ntasks;
          int active = 1;
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 15 10:40:05 UTC 2024
    - 43.7K bytes
    - Viewed (0)
  10. src/runtime/os_windows.go

    		_WAIT_TIMEOUT   = 0x00000102
    		_WAIT_FAILED    = 0xFFFFFFFF
    	)
    
    	var result uintptr
    	if ns < 0 {
    		result = stdcall2(_WaitForSingleObject, getg().m.waitsema, uintptr(_INFINITE))
    	} else {
    		start := nanotime()
    		elapsed := int64(0)
    		for {
    			ms := int64(timediv(ns-elapsed, 1000000, nil))
    			if ms == 0 {
    				ms = 1
    			}
    			result = stdcall4(_WaitForMultipleObjects, 2,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 41.5K bytes
    - Viewed (0)
Back to top