Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 75 for timar (0.18 sec)

  1. doc/next/6-stdlib/1-time.md

    ### Timer changes
    
    Go 1.23 makes two significant changes to the implementation of
    [time.Timer] and [time.Ticker].
    
    First, `Timer`s and `Ticker`s that are no longer referred to by the program
    become eligible for garbage collection immediately, even if their
    `Stop` methods have not been called.
    Earlier versions of Go did not collect unstopped `Timer`s until after
    they had fired and never collected unstopped `Ticker`s.
    
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Apr 12 20:57:18 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/TimeoutFuture.java

        Future<?> localTimer = timer;
        // Try to cancel the timer as an optimization.
        // timer may be null if this call to run was by the timer task since there is no happens-before
        // edge between the assignment to timer and an execution of the timer task.
        if (localTimer != null) {
          localTimer.cancel(false);
        }
    
        delegateRef = null;
        timer = null;
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  3. cmd/url_test.go

    	b.ReportAllocs()
    	// the actual benchmark for PutObject starts here. Reset the benchmark timer.
    	b.ResetTimer()
    
    	if err := req.ParseForm(); err != nil {
    		b.Fatal(err)
    	}
    
    	b.RunParallel(func(pb *testing.PB) {
    		for pb.Next() {
    			req.Form.Get("uploadId")
    		}
    	})
    
    	// Benchmark ends here. Stop timer.
    	b.StopTimer()
    }
    
    // BenchmarkURLQuery - benchmark URL memory allocations
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Nov 16 17:28:29 GMT 2021
    - 2K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache.h

      /// `max_age` is also 0, the cache will not be populated).
      ExpiringLRUCache(uint64_t max_age, size_t max_entries,
                       std::function<uint64_t()> timer_seconds = TF_NowSeconds)
          : max_age_(max_age),
            max_entries_(max_entries),
            timer_seconds_(timer_seconds) {}
    
      /// Insert `value` with key `key`. This will replace any previous entry with
      /// the same key.
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 09 19:31:22 GMT 2020
    - 6.3K bytes
    - Viewed (0)
  5. cmd/benchmark-utils_test.go

    	sha256hex := ""
    
    	// benchmark utility which helps obtain number of allocations and bytes allocated per ops.
    	b.ReportAllocs()
    	// the actual benchmark for PutObject starts here. Reset the benchmark timer.
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		// insert the object.
    		objInfo, err := obj.PutObject(context.Background(), bucket, "object"+strconv.Itoa(i),
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Dec 23 15:46:00 GMT 2022
    - 8.2K bytes
    - Viewed (0)
  6. internal/dsync/dsync_test.go

    		defer cancel()
    		dm.Unlock(ctx)
    		unlockReturned <- struct{}{}
    	}()
    
    	timer := time.NewTimer(2 * testDrwMutexUnlockCallTimeout)
    	defer timer.Stop()
    
    	select {
    	case <-unlockReturned:
    		t.Fatal("Unlock timed out, which should not happen")
    	case <-timer.C:
    	}
    }
    
    // Borrowed from mutex_test.go
    func HammerMutex(m *DRWMutex, loops int, cdone chan bool) {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Dec 24 03:49:07 GMT 2022
    - 11K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/timer/MonitorTarget.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.timer;
    
    import java.io.IOException;
    import java.io.PrintWriter;
    import java.util.Arrays;
    import java.util.function.Supplier;
    
    import org.apache.commons.io.output.ByteArrayOutputStream;
    import org.apache.commons.text.StringEscapeUtils;
    import org.codelibs.core.timer.TimeoutTarget;
    import org.codelibs.fess.Constants;
    Java
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/JobHelper.java

    import java.util.Map;
    
    import org.apache.logging.log4j.LogManager;
    import org.apache.logging.log4j.Logger;
    import org.codelibs.core.lang.StringUtil;
    import org.codelibs.core.timer.TimeoutManager;
    import org.codelibs.core.timer.TimeoutTarget;
    import org.codelibs.core.timer.TimeoutTask;
    import org.codelibs.fess.Constants;
    import org.codelibs.fess.es.config.exbhv.JobLogBhv;
    import org.codelibs.fess.es.config.exbhv.ScheduledJobBhv;
    Java
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/exec/ThumbnailGenerator.java

    import org.codelibs.core.misc.DynamicProperties;
    import org.codelibs.core.timer.TimeoutManager;
    import org.codelibs.core.timer.TimeoutTask;
    import org.codelibs.fess.Constants;
    import org.codelibs.fess.crawler.client.FesenClient;
    import org.codelibs.fess.es.client.SearchEngineClient;
    import org.codelibs.fess.exception.ContainerNotAvailableException;
    import org.codelibs.fess.timer.SystemMonitorTarget;
    import org.codelibs.fess.util.ComponentUtil;
    Java
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  10. internal/http/server.go

    	// Wait for opened connection to be closed up to Shutdown timeout.
    	shutdownTimeout := srv.ShutdownTimeout
    	shutdownTimer := time.NewTimer(shutdownTimeout)
    	defer shutdownTimer.Stop()
    
    	timer := time.NewTimer(nextPollInterval())
    	defer timer.Stop()
    	for {
    		select {
    		case <-shutdownTimer.C:
    			if atomic.LoadInt32(&srv.requestCount) <= 0 {
    				return nil
    			}
    
    			// Write all running goroutines.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Feb 09 21:25:16 GMT 2024
    - 7.7K bytes
    - Viewed (0)
Back to top