Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 362 for Implementation (0.18 sec)

  1. src/sync/once.go

    // without calling f.
    func (o *Once) Do(f func()) {
    	// Note: Here is an incorrect implementation of Do:
    	//
    	//	if o.done.CompareAndSwap(0, 1) {
    	//		f()
    	//	}
    	//
    	// Do guarantees that when it returns, f has finished.
    	// This implementation would not implement that guarantee:
    	// given two simultaneous calls, the winner of the cas would
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. src/runtime/pprof/label.go

    	if labels == nil {
    		return labelMap(nil)
    	}
    	return *labels
    }
    
    // labelMap is the representation of the label set held in the context type.
    // This is an initial implementation, but it will be replaced with something
    // that admits incremental immutable modification more efficiently.
    type labelMap map[string]string
    
    // String satisfies Stringer and returns key, value pairs in a consistent
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. src/io/fs/sub.go

    //
    // If dir is ".", Sub returns fsys unchanged.
    // Otherwise, if fs implements [SubFS], Sub returns fsys.Sub(dir).
    // Otherwise, Sub returns a new [FS] implementation sub that,
    // in effect, implements sub.Open(name) as fsys.Open(path.Join(dir, name)).
    // The implementation also translates calls to ReadDir, ReadFile, and Glob appropriately.
    //
    // Note that Sub(os.DirFS("/"), "prefix") is equivalent to os.DirFS("/prefix")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 10 02:10:17 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  4. src/internal/fuzz/pcg.go

    	restore(randState, randInc uint64)
    }
    
    // The functions in pcg implement a 32 bit PRNG with a 64 bit period: pcg xsh rr
    // 64 32. See https://www.pcg-random.org/ for more information. This
    // implementation is geared specifically towards the needs of fuzzing: Simple
    // creation and use, no reproducibility, no concurrency safety, just the
    // necessary methods, optimized for speed.
    
    var globalInc atomic.Uint64 // PCG stream
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:28:14 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  5. src/runtime/atomic_pointer.go

    }
    
    // atomic_storePointer is the implementation of runtime/internal/UnsafePointer.Store
    // (like StoreNoWB but with the write barrier).
    //
    //go:nosplit
    //go:linkname atomic_storePointer internal/runtime/atomic.storePointer
    func atomic_storePointer(ptr *unsafe.Pointer, new unsafe.Pointer) {
    	atomicstorep(unsafe.Pointer(ptr), new)
    }
    
    // atomic_casPointer is the implementation of runtime/internal/UnsafePointer.CompareAndSwap
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 4K bytes
    - Viewed (0)
  6. src/net/http/httputil/persist.go

    // ErrPersistEOF (above) reports that the remote side is closed.
    var errClosed = errors.New("i/o operation on closed connection")
    
    // ServerConn is an artifact of Go's early HTTP implementation.
    // It is low-level, old, and unused by Go's current HTTP stack.
    // We should have deleted it before Go 1.
    //
    // Deprecated: Use the Server in package [net/http] instead.
    type ServerConn struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  7. src/crypto/sha1/fallback_test.go

    package sha1
    
    import (
    	"fmt"
    	"io"
    	"testing"
    )
    
    // Tests the fallback code path in case the optimized asm
    // implementation cannot be used.
    // See also TestBlockGeneric.
    func TestGenericPath(t *testing.T) {
    	if !useAsm {
    		t.Skipf("assembly implementation unavailable")
    	}
    	useAsm = false
    	defer func() { useAsm = true }()
    	c := New()
    	in := "ΑΒΓΔΕϜΖΗΘΙΚΛΜΝΞΟΠϺϘΡΣΤΥΦΧΨΩ"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 853 bytes
    - Viewed (0)
  8. src/crypto/sha512/fallback_test.go

    package sha512
    
    import (
    	"fmt"
    	"io"
    	"testing"
    )
    
    // Tests the fallback code path in case the optimized asm
    // implementation cannot be used.
    // See also TestBlockGeneric.
    func TestGenericPath(t *testing.T) {
    	if !useAsm {
    		t.Skipf("assembly implementation unavailable")
    	}
    	useAsm = false
    	defer func() { useAsm = true }()
    	c := New()
    	in := "ΑΒΓΔΕϜΖΗΘΙΚΛΜΝΞΟΠϺϘΡΣΤΥΦΧΨΩ"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 964 bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/internal/typesinternal/toonew.go

    	// nested fields and methods than are shown here.) Clients
    	// that use the compatibility shim T will compile with any
    	// version of go, whether older or newer than go1.22, but only
    	// the newer version will use the std.Real implementation.
    	//
    	// Now consider a reference to method M in new(T).F.M() in a
    	// module that requires a minimum of go1.21. The analysis may
    	// occur using a version of Go higher than 1.21, selecting the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  10. src/io/fs/fs.go

    // but also by other packages.
    //
    // See the [testing/fstest] package for support with testing
    // implementations of file systems.
    package fs
    
    import (
    	"internal/oserror"
    	"time"
    	"unicode/utf8"
    )
    
    // An FS provides access to a hierarchical file system.
    //
    // The FS interface is the minimum implementation required of the file system.
    // A file system may implement additional interfaces,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 15 21:21:41 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top