Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 1,103 for differ (0.12 sec)

  1. doc/go1.17_spec.html

    </p>
    
    <pre>
    lock(l)
    defer unlock(l)  // unlocking happens before surrounding function returns
    
    // prints 3 2 1 0 before surrounding function returns
    for i := 0; i &lt;= 3; i++ {
    	defer fmt.Print(i)
    }
    
    // f returns 42
    func f() (result int) {
    	defer func() {
    		// result is accessed after it was set to 6 by the return statement
    		result *= 7
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 10 18:25:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  2. src/bytes/buffer_test.go

    	// Confirm that when Reader panics, the empty buffer remains empty
    	var buf2 Buffer
    	defer func() {
    		recover()
    		check(t, "TestReadFromPanicReader (2)", &buf2, "")
    	}()
    	buf2.ReadFrom(panicReader{panic: true})
    }
    
    func TestReadFromNegativeReader(t *testing.T) {
    	var b Buffer
    	defer func() {
    		switch err := recover().(type) {
    		case nil:
    			t.Fatal("bytes.Buffer.ReadFrom didn't panic")
    		case error:
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Sep 03 20:55:15 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  3. istioctl/pkg/writer/envoy/configdump/secret_test.go

    			}
    			defer configDumpFile.Close()
    			configDump, err := io.ReadAll(configDumpFile)
    			if err != nil {
    				t.Errorf("error reading test data file: %v", err)
    			}
    
    			outFile, err := os.Open(fmt.Sprintf("testdata/secret/%s/output", tc.sds))
    			if err != nil {
    				t.Errorf("error opening test data output file: %v", err)
    			}
    			defer outFile.Close()
    			expectedOut, err := io.ReadAll(outFile)
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Oct 28 19:52:53 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. cmd/callhome.go

    		// cycle back return 'true'
    		return true
    	}
    
    	ctx = lkctx.Context()
    	defer locker.Unlock(lkctx)
    
    	// Perform callhome once and then keep running it at regular intervals.
    	performCallhome(ctx)
    
    	callhomeTimer := time.NewTimer(globalCallhomeConfig.FrequencyDur())
    	defer callhomeTimer.Stop()
    
    	for {
    		if !globalCallhomeConfig.Enabled() {
    			// Stop the processing as callhome got disabled
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 17 16:53:34 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  5. docs/tuning/tuned.conf

    net.ipv4.tcp_sack=1
    
    # Low latency mode for TCP
    net.ipv4.tcp_low_latency=1
    
    # The following variable is used to tell the kernel how 
    # much of the socket buffer space should be used for TCP 
    # window size, and how much to save for an application buffer.
    net.ipv4.tcp_adv_win_scale=1
    
    # disable RFC2861 behavior
    net.ipv4.tcp_slow_start_after_idle = 0
    
    # Fix faulty network setups
    net.ipv4.tcp_mtu_probing=1
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 23:31:18 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  6. cmd/erasure-decode.go

    		}
    		wg.Add(1)
    		go func(i int) {
    			defer wg.Done()
    			rr := p.readers[i]
    			if rr == nil {
    				// Since reader is nil, trigger another read.
    				readTriggerCh <- true
    				return
    			}
    			bufIdx := p.readerToBuf[i]
    			if p.buf[bufIdx] == nil {
    				// Reading first time on this disk, hence the buffer needs to be allocated.
    				// Subsequent reads will reuse this buffer.
    				p.buf[bufIdx] = make([]byte, p.shardSize)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 29 01:40:52 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  7. internal/ioutil/ioutil.go

    const DirectioAlignSize = 4096
    
    // CopyAligned - copies from reader to writer using the aligned input
    // buffer, it is expected that input buffer is page aligned to
    // 4K page boundaries. Without passing aligned buffer may cause
    // this function to return error.
    //
    // This code is similar in spirit to io.Copy but it is only to be
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 26 12:55:01 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  8. internal/grid/manager.go

    	found := false
    	if o.AuthToken == nil {
    		return nil, fmt.Errorf("grid: AuthToken not set")
    	}
    	if o.Dialer == nil {
    		return nil, fmt.Errorf("grid: Dialer not set")
    	}
    	if o.AuthFn == nil {
    		return nil, fmt.Errorf("grid: AuthFn not set")
    	}
    	m := &Manager{
    		ID:        uuid.New(),
    		targets:   make(map[string]*Connection, len(o.Hosts)),
    		local:     o.Local,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  9. cmd/metacache-stream.go

    	w := metacacheBlockWriter{blockEntries: cap(in)}
    	w.wg.Add(1)
    	go func() {
    		defer w.wg.Done()
    		var current metacacheBlock
    		var n int
    
    		buf := bytebufferpool.Get()
    		defer func() {
    			buf.Reset()
    			bytebufferpool.Put(buf)
    		}()
    
    		block := newMetacacheWriter(buf, 1<<20)
    		defer block.Close()
    		finishBlock := func() {
    			if err := block.Close(); err != nil {
    				w.streamErr = err
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Apr 04 12:04:40 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  10. CREDITS

        written offer to provide the Corresponding Source.  This
        alternative is allowed only occasionally and noncommercially, and
        only if you received the object code with such an offer, in accord
        with subsection 6b.
    
        d) Convey the object code by offering access from a designated
        place (gratis or for a charge), and offer equivalent access to the
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 26 15:03:08 UTC 2024
    - 1.6M bytes
    - Viewed (0)
Back to top