Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 263 for flushed (0.22 sec)

  1. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/console/ThrottlingOutputEventListenerTest.groovy

            10_000 * listener.onOutput(_)
        }
    
        def "background flush does nothing when events already flushed"() {
            def event1 = event('1')
            def event2 = event('2')
            def flush = new FlushOutputEvent()
    
            given:
            renderer.onOutput(event1)
            renderer.onOutput(event2)
            renderer.onOutput(flush)
    
            when:
            executor.runFixedScheduledActionsNow()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  2. pkg/scheduler/metrics/metric_recorder.go

    	bufferCh chan *metric
    	// if bufferSize is reached, incoming metrics will be discarded.
    	bufferSize int
    	// how often the recorder runs to flush the metrics.
    	interval time.Duration
    
    	// stopCh is used to stop the goroutine which periodically flushes metrics.
    	stopCh <-chan struct{}
    	// IsStoppedCh indicates whether the goroutine is stopped. It's used in tests only to make sure
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 16 07:27:08 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  3. src/runtime/traceexp.go

    	return traceExpWriter{traceWriter{traceLocker: traceLocker{gen: gen}, traceBuf: buf}, exp}
    }
    
    // ensure makes sure that at least maxSize bytes are available to write.
    //
    // Returns whether the buffer was flushed.
    func (w traceExpWriter) ensure(maxSize int) (traceExpWriter, bool) {
    	refill := w.traceBuf == nil || !w.available(maxSize)
    	if refill {
    		w.traceWriter = w.traceWriter.refill(w.exp)
    	}
    	return w, refill
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. src/compress/gzip/gzip.go

    	n, z.err = z.compressor.Write(p)
    	return n, z.err
    }
    
    // Flush flushes any pending compressed data to the underlying writer.
    //
    // It is useful mainly in compressed network protocols, to ensure that
    // a remote reader has enough data to reconstruct a packet. Flush does
    // not return until the data has been written. If the underlying
    // writer returns an error, Flush returns that error.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:40 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  5. src/runtime/tracestack.go

    	// Estimate the size of this record. This
    	// bound is pretty loose, but avoids counting
    	// lots of varint sizes.
    	//
    	// Add 1 because we might also write traceEvStacks.
    	var flushed bool
    	w, flushed = w.ensure(1 + maxBytes)
    	if flushed {
    		w.byte(byte(traceEvStacks))
    	}
    
    	// Emit stack event.
    	w.byte(byte(traceEvStack))
    	w.varint(uint64(node.id))
    	w.varint(uint64(len(frames)))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:56 UTC 2024
    - 11K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/FlushablesTest.java

              .when(mockFlushable)
              .flush();
        }
      }
    
      // Flush the flushable using the Flushables, passing in the swallowException
      // parameter. expectThrown determines whether we expect an exception to
      // be thrown by Flushables.flush;
      private void doFlush(Flushable flushable, boolean swallowException, boolean expectThrown)
          throws IOException {
        try {
          Flushables.flush(flushable, swallowException);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.3K bytes
    - Viewed (0)
  7. test/recover4.go

    //
    // In the test, memcopy is the function that will fault, during dst[i] = src[i].
    // The deferred func recovers from the error and returns, making memcopy
    // return the current value of n. If n is not being flushed to memory
    // after each modification, the result will be a stale value of n.
    //
    // The test is set up by mmapping a 64 kB block of memory and then
    // unmapping a 16 kB hole in the middle of it. Running memcopy
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  8. src/runtime/mcache.go

    	// to avoid spilling mark bits into the *next* GC cycle.
    	sg := mheap_.sweepgen
    	flushGen := c.flushGen.Load()
    	if flushGen == sg {
    		return
    	} else if flushGen != sg-2 {
    		println("bad flushGen", flushGen, "in prepareForSweep; sweepgen", sg)
    		throw("bad flushGen")
    	}
    	c.releaseAll()
    	stackcache_clear(c)
    	c.flushGen.Store(mheap_.sweepgen) // Synchronizes with gcStart
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 10K bytes
    - Viewed (0)
  9. platforms/software/security/src/main/java/org/gradle/plugins/signing/signatory/pgp/PgpSignatory.java

            return name;
        }
    
        /**
         * Exhausts {@code toSign}, and writes the signature to {@code signatureDestination}.
         *
         * The caller is responsible for closing the streams, though the output WILL be flushed.
         */
        @Override
        public void sign(InputStream toSign, OutputStream signatureDestination) {
            PGPSignatureGenerator generator = createSignatureGenerator();
            try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  10. src/text/tabwriter/tabwriter.go

    // complete for formatting purposes.
    func (b *Writer) Flush() error {
    	return b.flush()
    }
    
    // flush is the internal version of Flush, with a named return value which we
    // don't want to expose.
    func (b *Writer) flush() (err error) {
    	defer b.handlePanic(&err, "Flush")
    	b.flushNoDefers()
    	return nil
    }
    
    // flushNoDefers is like flush, but without a deferred handlePanic call. This
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 16:46:34 UTC 2024
    - 17.8K bytes
    - Viewed (0)
Back to top