Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 1,471 for isSafe (0.18 sec)

  1. android/guava-testlib/src/com/google/common/testing/FakeTicker.java

     *
     * <p>The ticker can be configured so that the time is incremented whenever {@link #read} is called:
     * see {@link #setAutoIncrementStep}.
     *
     * <p>This class is thread-safe.
     *
     * @author Jige Yu
     * @since 10.0
     */
    @ElementTypesAreNonnullByDefault
    @GwtCompatible
    public class FakeTicker extends Ticker {
    
      private final AtomicLong nanos = new AtomicLong();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Mar 13 18:17:09 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/cycle_state.go

    func (c *CycleState) Clone() *CycleState {
    	if c == nil {
    		return nil
    	}
    	copy := NewCycleState()
    	// Safe copy storage in case of overwriting.
    	c.storage.Range(func(k, v interface{}) bool {
    		copy.storage.Store(k, v.(StateData).Clone())
    		return true
    	})
    	// The below are not mutated, so we don't have to safe copy.
    	copy.recordPluginMetrics = c.recordPluginMetrics
    	copy.SkipFilterPlugins = c.SkipFilterPlugins
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 18 06:48:20 UTC 2023
    - 4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Suppliers.java

       * and returns that value on subsequent calls to {@code get()}. See: <a
       * href="http://en.wikipedia.org/wiki/Memoization">memoization</a>
       *
       * <p>The returned supplier is thread-safe. The delegate's {@code get()} method will be invoked at
       * most once unless the underlying {@code get()} throws an exception. The supplier's serialized
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  4. src/runtime/os_darwin.go

    var sigNoteRead, sigNoteWrite int32
    
    // sigNoteSetup initializes a single, there-can-only-be-one, async-signal-safe note.
    //
    // The current implementation of notes on Darwin is not async-signal-safe,
    // because the functions pthread_mutex_lock, pthread_cond_signal, and
    // pthread_mutex_unlock, called by semawakeup, are not async-signal-safe.
    // There is only one case where we need to wake up a note from a signal
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  5. src/runtime/metrics/sample.go

    // such values in a concurrent setting, all data must be deep-copied.
    //
    // It is safe to execute multiple Read calls concurrently, but their arguments
    // must share no underlying memory. When in doubt, create a new []Sample from
    // scratch, which is always safe, though may be inefficient.
    //
    // Sample values with names not appearing in [All] will have their Value populated
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 16:59:11 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  6. src/internal/platform/supported.go

    // "default" buildmode. On Windows this is affected by -race,
    // so force the caller to pass that in to centralize that choice.
    func DefaultPIE(goos, goarch string, isRace bool) bool {
    	switch goos {
    	case "android", "ios":
    		return true
    	case "windows":
    		if isRace {
    			// PIE is not supported with -race on windows;
    			// see https://go.dev/cl/416174.
    			return false
    		}
    		return true
    	case "darwin":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 07:50:22 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/RegularImmutableList.java

      }
    
      // The fake cast to E is safe because the creation methods only allow E's
      @Override
      @SuppressWarnings("unchecked")
      public E get(int index) {
        return (E) array[index];
      }
    
      @SuppressWarnings("unchecked")
      @Override
      public UnmodifiableListIterator<E> listIterator(int index) {
        // for performance
        // The fake cast to E is safe because the creation methods only allow E's
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Dec 15 20:19:12 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/typelists.go

    package types2
    
    // TypeParamList holds a list of type parameters.
    type TypeParamList struct{ tparams []*TypeParam }
    
    // Len returns the number of type parameters in the list.
    // It is safe to call on a nil receiver.
    func (l *TypeParamList) Len() int { return len(l.list()) }
    
    // At returns the i'th type parameter in the list.
    func (l *TypeParamList) At(i int) *TypeParam { return l.tparams[i] }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 28 22:21:55 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  9. subprojects/core-api/src/main/java/org/gradle/api/initialization/resolve/DependencyResolutionManagement.java

        /**
         * Returns the shared component metadata handler
         */
        ComponentMetadataHandler getComponents();
    
        /**
         * Configures the version catalogs which will be used to generate type safe accessors for dependencies.
         * @param spec the spec to configure the dependencies
         *
         * @since 7.0
         */
        void versionCatalogs(Action<? super MutableVersionCatalogContainer> spec);
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 06 23:16:59 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  10. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/event/ListenerManager.java

     * system.
     *
     * <p>While the methods work with any Object, in general only interfaces should be used as listener types.
     *
     * <p>Implementations are thread-safe: A listener is notified by at most 1 thread at a time, and so do not need to be thread-safe. All listeners
     * of a given type receive events in the same order. Listeners can be added and removed at any time.
     */
    @ServiceScope(Scope.Global.class)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 5.6K bytes
    - Viewed (0)
Back to top