Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 389 for Resets (0.25 sec)

  1. android/guava/src/com/google/common/io/FileBackedOutputStream.java

      }
    
      /**
       * Creates a new instance that uses the given file threshold, and optionally resets the data when
       * the {@link ByteSource} returned by {@link #asByteSource} is finalized.
       *
       * @param fileThreshold the number of bytes before the stream should switch to buffering to a file
       * @param resetOnFinalize if true, the {@link #reset} method will be called when the {@link
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:40:56 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  2. src/runtime/tracetype.go

    // releases all memory and resets state. It must only be called once the caller
    // can guarantee that there are no more writers to the table.
    func (t *traceTypeTable) dump(gen uintptr) {
    	w := unsafeTraceExpWriter(gen, nil, traceExperimentAllocFree)
    	if root := (*traceMapNode)(t.tab.root.Load()); root != nil {
    		w = dumpTypesRec(root, w)
    	}
    	w.flush().end()
    	t.tab.reset()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:31:27 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/ConnectorServices.java

            return new DefaultCancellationTokenSource();
        }
    
        public static void close() {
            singletonRegistry.close();
        }
    
        /**
         * Resets the state of connector services. Meant to be used only for testing!
         */
        public static void reset() {
            singletonRegistry.close();
            singletonRegistry = new ConnectorServiceRegistry();
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 09:21:42 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. cmd/genkubedocs/gen_kube_docs.go

    		doc.GenMarkdownTree(scheduler, outDir)
    	case "kubelet":
    		// generate docs for kubelet
    		kubelet := kubeletapp.NewKubeletCommand()
    		doc.GenMarkdownTree(kubelet, outDir)
    	case "kubeadm":
    		// resets global flags created by kubelet or other commands e.g.
    		// --azure-container-registry-config from pkg/credentialprovider/azure
    		// --version pkg/version/verflag
    		pflag.CommandLine = pflag.NewFlagSet(os.Args[0], pflag.ExitOnError)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 01 05:59:41 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  5. security/pkg/credentialfetcher/plugin/mock.go

    func (ms *MetadataServer) NumGetTokenCall() int {
    	ms.mutex.RLock()
    	defer ms.mutex.RUnlock()
    
    	return ms.numGetTokenCall
    }
    
    // Reset resets members to default values.
    func (ms *MetadataServer) Reset() {
    	ms.mutex.Lock()
    	defer ms.mutex.Unlock()
    
    	ms.numGetTokenCall = 0
    	ms.credential = ""
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 3K bytes
    - Viewed (0)
  6. src/runtime/coverage/coverage.go

    // "-cover", or if a write fails). The counter data written will be a
    // snapshot taken at the point of the invocation.
    func WriteCounters(w io.Writer) error {
    	return cfile.WriteCounters(w)
    }
    
    // ClearCounters clears/resets all coverage counter variables in the
    // currently running program. It returns an error if the program in
    // question was not built with the "-cover" flag. Clearing of coverage
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 19:41:02 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  7. src/runtime/traceregion.go

    	x := (*notInHeap)(unsafe.Pointer(&block.data[0]))
    
    	// Publish the new block.
    	a.current.Store(unsafe.Pointer(block))
    	unlock(&a.lock)
    	return x
    }
    
    // drop frees all previously allocated memory and resets the allocator.
    //
    // drop is not safe to call concurrently with other calls to drop or with calls to alloc. The caller
    // must ensure that it is not possible for anything else to be using the same structure.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. internal/store/batch.go

    	if b.isFull() {
    		return ErrBatchFull
    	}
    
    	if _, ok := b.items[key]; !ok {
    		b.keys = append(b.keys, key)
    	}
    	b.items[key] = item
    
    	return nil
    }
    
    // GetAll fetches the items and resets the batch
    // Returned items are not referenced by the batch
    func (b *Batch[K, T]) GetAll() (orderedKeys []K, orderedItems []T, err error) {
    	b.Lock()
    	defer b.Unlock()
    
    	orderedKeys = append([]K(nil), b.keys...)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Oct 07 15:07:38 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  9. src/math/rand/v2/chacha8.go

    	readLen int // 0 <= readLen <= 8
    }
    
    // NewChaCha8 returns a new ChaCha8 seeded with the given seed.
    func NewChaCha8(seed [32]byte) *ChaCha8 {
    	c := new(ChaCha8)
    	c.state.Init(seed)
    	return c
    }
    
    // Seed resets the ChaCha8 to behave the same way as NewChaCha8(seed).
    func (c *ChaCha8) Seed(seed [32]byte) {
    	c.state.Init(seed)
    	c.readLen = 0
    	c.readBuf = [8]byte{}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:09:08 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  10. src/math/rand/v2/pcg.go

    type PCG struct {
    	hi uint64
    	lo uint64
    }
    
    // NewPCG returns a new PCG seeded with the given values.
    func NewPCG(seed1, seed2 uint64) *PCG {
    	return &PCG{seed1, seed2}
    }
    
    // Seed resets the PCG to behave the same way as NewPCG(seed1, seed2).
    func (p *PCG) Seed(seed1, seed2 uint64) {
    	p.hi = seed1
    	p.lo = seed2
    }
    
    // MarshalBinary implements the encoding.BinaryMarshaler interface.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:31:58 UTC 2024
    - 2.9K bytes
    - Viewed (0)
Back to top