Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 92 for Loadint32 (0.18 sec)

  1. src/internal/poll/fd_wasip1.go

    	// syscall.Filetype is a uint8 but we store it as a uint32 in SysFile in
    	// order to use atomic load/store on the field, which is why we have to
    	// perform this type conversion.
    	fileType := syscall.Filetype(atomic.LoadUint32(&fd.Filetype))
    
    	if fileType == syscall.FILETYPE_UNKNOWN {
    		var stat syscall.Stat_t
    		if err := fd.Fstat(&stat); err != nil {
    			return 0, err
    		}
    		fileType = stat.Filetype
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:14:02 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/mod/sumdb/client.go

    // SetTileHeight can be called at most once,
    // and if so it must be called before the first call to Lookup.
    func (c *Client) SetTileHeight(height int) {
    	if atomic.LoadUint32(&c.didLookup) != 0 {
    		panic("SetTileHeight used after Lookup")
    	}
    	if height <= 0 {
    		panic("invalid call to SetTileHeight")
    	}
    	if c.tileHeight != 0 {
    		panic("multiple calls to SetTileHeight")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 17:50:49 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  3. src/sync/map_test.go

    	m.Store(nil, struct{}{})
    
    	var finalized uint32
    
    	// Set finalizers that count for collected keys. A non-zero count
    	// indicates that keys have not been leaked.
    	for atomic.LoadUint32(&finalized) == 0 {
    		p := new(int)
    		runtime.SetFinalizer(p, func(*int) {
    			atomic.AddUint32(&finalized, 1)
    		})
    		m.Store(p, struct{}{})
    		m.Delete(p)
    		runtime.GC()
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 01 15:34:22 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  4. src/runtime/gc_test.go

    	// Keep GC running continuously during the benchmark, which in
    	// turn keeps the write barrier on continuously.
    	var stop uint32
    	done := make(chan bool)
    	go func() {
    		for atomic.LoadUint32(&stop) == 0 {
    			runtime.GC()
    		}
    		close(done)
    	}()
    	defer func() {
    		atomic.StoreUint32(&stop, 1)
    		<-done
    	}()
    
    	b.ResetTimer()
    	f()
    	b.StopTimer()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 22:33:52 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"CompareAndSwapUint64", Func, 0},
    		{"CompareAndSwapUintptr", Func, 0},
    		{"Int32", Type, 19},
    		{"Int64", Type, 19},
    		{"LoadInt32", Func, 0},
    		{"LoadInt64", Func, 0},
    		{"LoadPointer", Func, 0},
    		{"LoadUint32", Func, 0},
    		{"LoadUint64", Func, 0},
    		{"LoadUintptr", Func, 0},
    		{"Pointer", Type, 19},
    		{"StoreInt32", Func, 0},
    		{"StoreInt64", Func, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/named.go

    		n.loader = nil
    	}
    
    	n.setState(complete)
    	return n
    }
    
    // state atomically accesses the current state of the receiver.
    func (n *Named) state() namedState {
    	return namedState(atomic.LoadUint32(&n.state_))
    }
    
    // setState atomically stores the given state for n.
    // Must only be called while holding n.mu.
    func (n *Named) setState(state namedState) {
    	atomic.StoreUint32(&n.state_, uint32(state))
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  7. src/runtime/chan_test.go

    			for i := 0; i < chanCap; i++ {
    				c <- i
    			}
    			sent := uint32(0)
    			go func() {
    				c <- 0
    				atomic.StoreUint32(&sent, 1)
    			}()
    			time.Sleep(time.Millisecond)
    			if atomic.LoadUint32(&sent) != 0 {
    				t.Fatalf("chan[%d]: send to full chan", chanCap)
    			}
    			// Ensure that non-blocking send does not block.
    			select {
    			case c <- 0:
    				t.Fatalf("chan[%d]: send to full chan", chanCap)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:47:35 UTC 2023
    - 23.4K bytes
    - Viewed (0)
  8. src/go/types/named.go

    		n.loader = nil
    	}
    
    	n.setState(complete)
    	return n
    }
    
    // state atomically accesses the current state of the receiver.
    func (n *Named) state() namedState {
    	return namedState(atomic.LoadUint32(&n.state_))
    }
    
    // setState atomically stores the given state for n.
    // Must only be called while holding n.mu.
    func (n *Named) setState(state namedState) {
    	atomic.StoreUint32(&n.state_, uint32(state))
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 24K bytes
    - Viewed (0)
  9. src/cmd/internal/obj/link.go

    	// assumed to be an ABI value.
    	//
    	// MUST BE LAST since all bits above this comprise the ABI.
    	attrABIBase
    )
    
    func (a *Attribute) load() Attribute { return Attribute(atomic.LoadUint32((*uint32)(a))) }
    
    func (a *Attribute) DuplicateOK() bool        { return a.load()&AttrDuplicateOK != 0 }
    func (a *Attribute) MakeTypelink() bool       { return a.load()&AttrMakeTypelink != 0 }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  10. src/net/http/transport_test.go

    		if doBreak != (err != nil) {
    			t.Errorf("for iteration %d, doBreak=%v; unexpected error %v", i, doBreak, err)
    		}
    	}
    	if got, want := atomic.LoadUint32(&gotConns), 1; int(got) != want {
    		t.Errorf("GotConn calls = %v; want %v", got, want)
    	}
    	if got, want := atomic.LoadUint32(&numDials), numReqs; int(got) != want {
    		t.Errorf("Dials = %v; want %v", got, want)
    	}
    }
    
    // Issue 34941
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
Back to top