- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 86 for Loadint32 (0.15 sec)
-
pilot/pkg/config/memory/controller_test.go
} func TestControllerHashSynced(t *testing.T) { store := memory.Make(collections.Mocks) var v int32 ctl := memory.NewController(store) ctl.RegisterHasSyncedHandler(func() bool { return atomic.LoadInt32(&v) > 0 }) if ctl.HasSynced() { t.Error("has synced but should not") } atomic.StoreInt32(&v, 1) if !ctl.HasSynced() { t.Error("has not synced but should") }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Aug 18 15:37:45 UTC 2021 - 1.8K bytes - Viewed (0) -
src/cmd/cgo/internal/test/testx.go
) //export Issue1560FromC func Issue1560FromC() { for atomic.LoadInt32(&issue1560) != 1 { runtime.Gosched() } atomic.AddInt32(&issue1560, 1) for atomic.LoadInt32(&issue1560) != 3 { runtime.Gosched() } issue1560Ch <- true } func Issue1560FromGo() { atomic.AddInt32(&issue1560, 1) for atomic.LoadInt32(&issue1560) != 2 { runtime.Gosched() } atomic.AddInt32(&issue1560, 1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 17 21:53:11 UTC 2023 - 10.6K bytes - Viewed (0) -
internal/pubsub/pubsub.go
types := Mask(atomic.LoadUint64(&ps.types)) if !types.Overlaps(Mask(mask.Mask())) { return 0 } return atomic.LoadInt32(&ps.numSubscribers) } // Subscribers returns the number of current subscribers for all types. func (ps *PubSub[T, M]) Subscribers() int32 { return atomic.LoadInt32(&ps.numSubscribers) } // New inits a PubSub system with a limit of maximum // subscribers unless zero is specified
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Feb 06 16:57:30 UTC 2024 - 5.2K bytes - Viewed (0) -
src/internal/runtime/atomic/atomic_s390x.s
TEXT ·Storeint64(SB), NOSPLIT, $0-16 BR ·Store64(SB) // func Storeuintptr(ptr *uintptr, new uintptr) TEXT ·Storeuintptr(SB), NOSPLIT, $0-16 BR ·Store64(SB) // func Loadint32(ptr *int32) int32 TEXT ·Loadint32(SB), NOSPLIT, $0-12 BR ·Load(SB) // func Loadint64(ptr *int64) int64 TEXT ·Loadint64(SB), NOSPLIT, $0-16 BR ·Load64(SB) // func Xadduintptr(ptr *uintptr, delta uintptr) uintptr
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 7.1K bytes - Viewed (0) -
pilot/pkg/status/resourcelock_test.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 2.1K bytes - Viewed (0) -
src/sync/atomic/asm.s
TEXT ·AddInt64(SB),NOSPLIT,$0 JMP internal∕runtime∕atomic·Xadd64(SB) TEXT ·AddUint64(SB),NOSPLIT,$0 JMP internal∕runtime∕atomic·Xadd64(SB) TEXT ·LoadInt32(SB),NOSPLIT,$0 JMP internal∕runtime∕atomic·Load(SB) TEXT ·LoadUint32(SB),NOSPLIT,$0 JMP internal∕runtime∕atomic·Load(SB) TEXT ·LoadInt64(SB),NOSPLIT,$0 JMP internal∕runtime∕atomic·Load64(SB) TEXT ·LoadUint64(SB),NOSPLIT,$0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:37:29 UTC 2024 - 3K bytes - Viewed (0) -
src/runtime/testdata/testprogcgo/threadprof.go
// before we make any cgo call will not abort the whole process, so // we cannot make any cgo call here. See https://golang.org/issue/9456. atomic.StoreInt32((*int32)(unsafe.Pointer(&C.spinlock)), 1) for atomic.LoadInt32((*int32)(unsafe.Pointer(&C.spinlock))) == 1 { runtime.Gosched() } println("OK") } func CgoExternalThreadSignal() { if len(os.Args) > 2 && os.Args[2] == "crash" { i := C.start_crashing_thread()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 05 22:43:54 UTC 2023 - 2.4K bytes - Viewed (0) -
pilot/pkg/xds/discovery_test.go
t.Helper() err := retry.UntilSuccess(func() error { select { case err := <-errCh: t.Error(err) return err default: partial := atomic.LoadInt32(&partialPushes) full := atomic.LoadInt32(&fullPushes) if partial != expectedPartial || full != expectedFull { return fmt.Errorf("got %v full and %v partial, expected %v full and %v partial", full, partial, expectedFull, expectedPartial)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 30 00:26:45 UTC 2024 - 9.2K bytes - Viewed (0) -
internal/rest/client.go
// Call - make a REST call with context. func (c *Client) Call(ctx context.Context, method string, values url.Values, body io.Reader, length int64) (reply io.ReadCloser, err error) { switch atomic.LoadInt32(&c.connected) { case closed: // client closed, this is usually a manual process // so return a local error as client is closed return nil, &NetworkError{Err: ErrClientClosed} case offline:
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 14.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/upgrade.go
// read. type connWrapper struct { net.Conn closed int32 bufReader *bufio.Reader } func (w *connWrapper) Read(b []byte) (n int, err error) { if atomic.LoadInt32(&w.closed) == 1 { return 0, io.EOF } return w.bufReader.Read(b) } func (w *connWrapper) Close() error { err := w.Conn.Close() atomic.StoreInt32(&w.closed, 1) return err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jul 28 08:02:09 UTC 2022 - 4K bytes - Viewed (0)