Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 47 for concurrence (0.41 sec)

  1. misc/cgo/gmp/fib.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build ignore
    
    // Compute Fibonacci numbers with two goroutines
    // that pass integers back and forth.  No actual
    // concurrency, just threads and synchronization
    // and foreign code on multiple pthreads.
    
    package main
    
    import (
    	big "."
    	"runtime"
    )
    
    func fibber(c chan *big.Int, out chan string, n int64) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 10 22:32:35 UTC 2023
    - 919 bytes
    - Viewed (0)
  2. src/cmd/gofmt/gofmt.go

    }
    
    // A sequencer performs concurrent tasks that may write output, but emits that
    // output in a deterministic order.
    type sequencer struct {
    	maxWeight int64
    	sem       *semaphore.Weighted   // weighted by input bytes (an approximate proxy for memory overhead)
    	prev      <-chan *reporterState // 1-buffered
    }
    
    // newSequencer returns a sequencer that allows concurrent tasks up to maxWeight
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  3. src/cmd/go/internal/robustio/robustio.go

    // significantly reduce the rate of failure in practice.
    //
    // If so, the error will likely wrap one of:
    // The functions in this package do not completely eliminate spurious errors,
    // but substantially reduce their rate of occurrence in practice.
    package robustio
    
    // Rename is like os.Rename, but on Windows retries errors that may occur if the
    // file is concurrently read or overwritten.
    //
    // (See golang.org/issue/31247 and golang.org/issue/32188.)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/interface.go

    }
    
    // MarkImplicit marks the interface t as implicit, meaning this interface
    // corresponds to a constraint literal such as ~T or A|B without explicit
    // interface embedding. MarkImplicit should be called before any concurrent use
    // of implicit interfaces.
    func (t *Interface) MarkImplicit() {
    	t.implicit = true
    }
    
    // NumExplicitMethods returns the number of explicitly declared methods of interface t.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 17:24:42 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  5. src/cmd/go/internal/lockedfile/internal/filelock/filelock_fcntl.go

    // we allow only one read-lock at a time.
    //
    // Most platforms provide some alternative API, such as an 'flock' system call
    // or an F_OFD_SETLK command for 'fcntl', that allows for better concurrency and
    // does not require per-inode bookkeeping in the application.
    
    package filelock
    
    import (
    	"errors"
    	"io"
    	"io/fs"
    	"math/rand"
    	"sync"
    	"syscall"
    	"time"
    )
    
    type lockType int16
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 17 02:24:35 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  6. src/cmd/go/internal/modcmd/download.go

    	// if any download failed due to a TooNewError, we switch toolchains and try
    	// again. Any downloads that already succeeded will still be in cache.
    	// That won't give optimal concurrency (we'll do two batches of concurrent
    	// downloads instead of all in one batch), and it might add a little overhead
    	// to look up the downloads from the first batch in the module cache when
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 19:32:39 UTC 2023
    - 13.5K bytes
    - Viewed (0)
  7. src/bufio/bufio.go

    	b.lastRuneSize = -1
    	return nil
    }
    
    // Buffered returns the number of bytes that can be read from the current buffer.
    func (b *Reader) Buffered() int { return b.w - b.r }
    
    // ReadSlice reads until the first occurrence of delim in the input,
    // returning a slice pointing at the bytes in the buffer.
    // The bytes stop being valid at the next read.
    // If ReadSlice encounters an error before finding a delimiter,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 14:39:08 UTC 2023
    - 21.8K bytes
    - Viewed (0)
  8. src/cmd/internal/test2json/test2json.go

    // writing to a single underlying output stream w.
    // As long as the underlying output w can handle concurrent writes
    // from multiple goroutines, the result will be a JSON stream
    // describing the relative ordering of execution in all the concurrent tests.
    //
    // The mode flag adjusts the behavior of the converter.
    // Passing ModeTime includes event timestamps and elapsed times.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 09 17:33:07 UTC 2022
    - 14.5K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/named.go

    // concurrent use of the type checker API (after type checking or importing has
    // finished). It is critical that we keep track of state, so that Named types
    // are constructed exactly once and so that we do not access their details too
    // soon.
    //
    // We achieve this by tracking state with an atomic state variable, and
    // guarding potentially concurrent calculations with a mutex. At any point in
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/api.go

    	// the alias information is only in the type name, which points directly to
    	// the actual (aliased) type.
    	//
    	// This setting must not differ among concurrent type-checking operations,
    	// since it affects the behavior of Universe.Lookup("any").
    	//
    	// This flag will eventually be removed (with Go 1.24 at the earliest).
    	EnableAlias bool
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:48:53 UTC 2024
    - 17.4K bytes
    - Viewed (0)
Back to top