- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 6,658 for makeWE (0.11 sec)
-
src/runtime/sys_libc.go
mp.libcallpc = getcallerpc() // sp must be the last, because once async cpu profiler finds // all three values to be non-zero, it will use them mp.libcallsp = getcallersp() } else { // Make sure we don't reset libcallsp. This makes // libcCall reentrant; We remember the g/pc/sp for the // first call on an M, until that libcCall instance // returns. Reentrance only matters for signals, as
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 05 17:54:15 UTC 2022 - 1.8K bytes - Viewed (0) -
test/typeparam/chansimp.dir/a.go
// at a time. This is implemented using channels rather than a mutex. type Exclusive[Val any] struct { c chan Val } // MakeExclusive makes an initialized exclusive value. func MakeExclusive[Val any](initial Val) *Exclusive[Val] { r := &Exclusive[Val]{ c: make(chan Val, 1), } r.c <- initial return r } // Acquire acquires the exclusive value for private use.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jul 28 21:40:40 UTC 2021 - 5.5K bytes - Viewed (0) -
test/fixedbugs/issue13162.go
package main import ( "fmt" "os" ) func check(n int) { var i int var r rune b := make([]byte, n) for i = range b { b[i] = byte(i + 1) } s := string(b) // When n == 0, i is untouched by the range loop. // Picking an initial value of -1 for i makes the // "want" calculation below correct in all cases. i = -1 for i = range s { b[i] = s[i] }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 30 18:17:20 UTC 2016 - 1.6K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/types/nodename.go
// // * The cloudproviders have the own names: GCE has InstanceName, AWS has InstanceId. // // For GCE, InstanceName is the Name of an Instance object in the GCE API. On GCE, Instance.Name becomes the // Hostname, and thus it makes sense also to use it as the Node.Name. But that is GCE specific, and it is up // to the cloudprovider how to do this mapping. // // For AWS, the InstanceID is not yet suitable for use as a Node.Name, so we actually use the
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 26 17:14:05 UTC 2022 - 2K bytes - Viewed (0) -
src/go/internal/gcimporter/iimport.go
stringData: stringData, stringCache: make(map[uint64]string), pkgCache: make(map[uint64]*types.Package), declData: declData, pkgIndex: make(map[*types.Package]map[string]uint64), typCache: make(map[uint64]types.Type), // Separate map for typeparams, keyed by their package and unique // name (name with subscript). tparamIndex: make(map[ident]*types.TypeParam), fake: fakeFileSet{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 19.2K bytes - Viewed (0) -
pkg/queue/delay.go
var n int if n = runtime.GOMAXPROCS(0); n == 1 { return 0 } // Make channel non-blocking and set up its capacity with GOMAXPROCS if GOMAXPROCS>1, // otherwise the sender might be dragged down if the receiver is CPU-bound. // // GOMAXPROCS determines how many goroutines can run in parallel, // which makes it the best choice as the channel capacity, return n }()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jul 20 06:27:31 UTC 2023 - 6.7K bytes - Viewed (0) -
src/sync/map_reference_test.go
func (m *RWMutexMap) Store(key, value any) { m.mu.Lock() if m.dirty == nil { m.dirty = make(map[any]any) } m.dirty[key] = value m.mu.Unlock() } func (m *RWMutexMap) LoadOrStore(key, value any) (actual any, loaded bool) { m.mu.Lock() actual, loaded = m.dirty[key] if !loaded { actual = value if m.dirty == nil { m.dirty = make(map[any]any) } m.dirty[key] = value } m.mu.Unlock()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 01 15:34:22 UTC 2024 - 5.6K bytes - Viewed (0) -
platforms/documentation/docs/src/samples/build-organization/cross-project-output-sharing/README.adoc
You want to share a file made by a task in one project with a task in another project. For example, one task makes a file, and the other task reads the file and uses some information inside it. This is one way you can share information across project boundaries. (Another way is to use extension objects.) [NOTE] ====
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Dec 07 01:37:51 UTC 2023 - 2.3K bytes - Viewed (0) -
src/strconv/strconv_test.go
} // Allocate a big messy buffer for AppendQuoteToASCII's test. oneMB = make([]byte, 1e6) for i := range oneMB { oneMB[i] = byte(i) } for _, mt := range mallocTest { allocs := testing.AllocsPerRun(100, mt.fn) if max := float64(mt.count); allocs > max { t.Errorf("%s: %v allocs, want <=%v", mt.desc, allocs, max) } } } // Sink makes sure the compiler cannot optimize away the benchmarks. var Sink struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 23 20:29:22 UTC 2022 - 4.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/common.py
show_debug_info: If true, shows debug locations in the resulting MLIR. """ if exported_names is None: exported_names = [] # Make LOG(ERROR) in C++ code show up on the console. # All `Status` passed around in the C++ API seem to eventually go into # `LOG(ERROR)`, so this makes them print out by default. logging.set_stderrthreshold('error') # In true TF2 releases, v2 behavior is enabled as part of module __init__. In
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 02 23:49:27 UTC 2023 - 4K bytes - Viewed (0)