- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 86 for Loadint32 (0.14 sec)
-
src/runtime/race.go
// package. //go:linkname abigen_sync_atomic_LoadInt32 sync/atomic.LoadInt32 func abigen_sync_atomic_LoadInt32(addr *int32) (val int32) //go:linkname abigen_sync_atomic_LoadInt64 sync/atomic.LoadInt64 func abigen_sync_atomic_LoadInt64(addr *int64) (val int64) //go:linkname abigen_sync_atomic_LoadUint32 sync/atomic.LoadUint32 func abigen_sync_atomic_LoadUint32(addr *uint32) (val uint32)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:37:29 UTC 2024 - 20.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/queueset_test.go
if err != nil { uss.t.Error(err) } else { uss.t.Log("Success with" + e) } } expectedRejects := "" for i := range uss.clients { fsName := fmt.Sprintf("client%d", i) if atomic.LoadInt32(&uss.executions[i]) > 0 { uss.expectedExecuting = uss.expectedExecuting + fmt.Sprintf(` apiserver_flowcontrol_current_executing_requests{flow_schema=%q,priority_level=%q} 0%s`, fsName, uss.name, "\n")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 26 12:55:23 UTC 2023 - 58.4K bytes - Viewed (0) -
src/internal/runtime/atomic/types.go
// // An Int32 must not be copied. type Int32 struct { noCopy noCopy value int32 } // Load accesses and returns the value atomically. // //go:nosplit func (i *Int32) Load() int32 { return Loadint32(&i.value) } // Store updates the value atomically. // //go:nosplit func (i *Int32) Store(value int32) { Storeint32(&i.value, value) } // CompareAndSwap atomically compares i's value with old,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 14.2K bytes - Viewed (0) -
src/runtime/proc_test.go
func warmupScheduler(targetThreadCount int) { var wg sync.WaitGroup var count int32 for i := 0; i < targetThreadCount; i++ { wg.Add(1) go func() { atomic.AddInt32(&count, 1) for atomic.LoadInt32(&count) < int32(targetThreadCount) { // spin until all threads started } // spin a bit more to ensure they are all running on separate CPUs. doWork(time.Millisecond) wg.Done() }() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 14 00:03:57 UTC 2023 - 25.8K bytes - Viewed (0) -
src/testing/sub_test.go
var races int32 // Incremented for each race detected raceDetector := func(b []byte) (int, error) { // Check if some other goroutine is concurrently calling Write. if atomic.LoadInt32(&runs) > 0 { atomic.AddInt32(&races, 1) // Race detected! } atomic.AddInt32(&runs, 1) defer atomic.AddInt32(&runs, -1) runtime.Gosched() // Increase probability of a race return len(b), nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 01 21:27:08 UTC 2023 - 23.8K bytes - Viewed (0) -
src/cmd/compile/internal/types2/check.go
// negative: type checking is occurring without EnableAlias set // positive: type checking is occurring with EnableAlias set var _aliasAny int32 func aliasAny() bool { return atomic.LoadInt32(&_aliasAny) >= 0 // default true } // exprInfo stores information about an untyped expression. type exprInfo struct { isLhs bool // expression is lhs operand of a shift with delayed type-check mode operandMode
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 23.3K bytes - Viewed (0) -
src/net/http/clientserver_test.go
continue } if got != last { t.Errorf("Response body changed: %q -> %q", last, got) } } var open, close int32 for i := 0; i < 150; i++ { open, close = atomic.LoadInt32(&numOpen), atomic.LoadInt32(&numClose) if open < 1 { t.Fatalf("open = %d; want at least", open) } if close == open-1 { // Success return } time.Sleep(10 * time.Millisecond) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 46.6K bytes - Viewed (0) -
src/go/types/check.go
// positive: type checking is occurring with _EnableAlias set var _aliasAny int32 func aliasAny() bool { v := gotypesalias.Value() useAlias := v != "0" inuse := atomic.LoadInt32(&_aliasAny) if inuse != 0 && useAlias != (inuse > 0) { panic(fmt.Sprintf("gotypealias mutated during type checking, gotypesalias=%s, inuse=%d", v, inuse)) } return useAlias }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 23.1K bytes - Viewed (0) -
pkg/wasm/cache_test.go
atomic.StoreInt32(&tsNumRequest, 0) if c.getOptions.PullSecret == nil { c.getOptions.PullSecret = []byte{} } gotFilePath, gotErr := cache.Get(c.fetchURL, c.getOptions) serverVisited := atomic.LoadInt32(&tsNumRequest) > 0 if c.checkPurgeTimeout > 0 { moduleDeleted := false for start := time.Now(); time.Since(start) < c.checkPurgeTimeout; { fileCount := 0 err = filepath.Walk(tmpDir,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 20:06:41 UTC 2024 - 33.9K bytes - Viewed (0) -
pkg/scheduler/framework/preemption/preemption.go
// might still be executing when this is called, so care must be taken to // ensure that all add() operations complete before accessing the elements of // the list. func (cl *candidateList) size() int32 { n := atomic.LoadInt32(&cl.idx) + 1 if n >= int32(len(cl.items)) { n = int32(len(cl.items)) } return n } // get returns the internal candidate array. This function is NOT atomic and
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 15:52:16 UTC 2024 - 25.1K bytes - Viewed (0)