Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 85 of 85 for Loadint32 (0.24 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. src/reflect/all_test.go

    		return emptyStruct{}, i
    	}
    	v := ValueOf(f).Call(nil)[0] // out[0] should not alias out[1]'s memory, so the finalizer should run.
    	timeout := time.After(5 * time.Second)
    	for atomic.LoadUint32(&finalized) == 0 {
    		select {
    		case <-timeout:
    			t.Fatal("finalizer did not run")
    		default:
    		}
    		runtime.Gosched()
    		runtime.GC()
    	}
    	runtime.KeepAlive(v)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
Back to top