Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 3,930 for chanWg (0.12 sec)

  1. src/runtime/race/testdata/chan_test.go

    		chanWg <- true
    		go func(i int) {
    			data[i] = 42
    			<-chanWg
    		}(i)
    	}
    	for i := 0; i < cap(chanWg); i++ {
    		chanWg <- true
    	}
    	for i := 0; i < N; i++ {
    		_ = data[i]
    	}
    }
    
    // Test that sender synchronizes with receiver even if the sender was blocked.
    func TestNoRaceBlockedSendSync(t *testing.T) {
    	c := make(chan *int, 1)
    	c <- nil
    	go func() {
    		i := 42
    		c <- &i
    	}()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 18 19:55:29 UTC 2023
    - 11K bytes
    - Viewed (0)
  2. src/go/parser/testdata/chans.go2

    func Ranger[T any]() (*Sender[T], *Receiver[T]) {
    	c := make(chan T)
    	d := make(chan bool)
    	s := &Sender[T]{values: c, done: d}
    	r := &Receiver[T]{values: c, done: d}
    	runtime.SetFinalizer(r, r.finalize)
    	return s, r
    }
    
    // A sender is used to send values to a Receiver.
    type Sender[T any] struct {
    	values chan<- T
    	done <-chan bool
    }
    
    // Send sends a value to the receiver. It returns whether any more
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 24 19:44:06 UTC 2020
    - 1.7K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/syntax/testdata/chans.go

    func Ranger[T any]() (*Sender[T], *Receiver[T]) {
    	c := make(chan T)
    	d := make(chan bool)
    	s := &Sender[T]{values: c, done: d}
    	r := &Receiver[T]{values: c, done: d}
    	runtime.SetFinalizer(r, r.finalize)
    	return s, r
    }
    
    // A sender is used to send values to a Receiver.
    type Sender[T any] struct {
    	values chan<- T
    	done   <-chan bool
    }
    
    // Send sends a value to the receiver. It returns whether any more
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 30 18:02:18 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  4. src/internal/types/testdata/check/chans.go

    func Ranger[T any]() (*Sender[T], *Receiver[T]) {
    	c := make(chan T)
    	d := make(chan bool)
    	s := &Sender[T]{values: c, done: d}
    	r := &Receiver[T]{values: c, done: d}
    	runtime.SetFinalizer(r, r.finalize)
    	return s, r
    }
    
    // A sender is used to send values to a Receiver.
    type Sender[T any] struct {
    	values chan<- T
    	done <-chan bool
    }
    
    // Send sends a value to the receiver. It returns whether any more
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  5. test/fixedbugs/bug222.dir/chanbug.go

    // Copyright 2009 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file
    
    package chanbug
    var C chan<- (chan int)
    var D chan<- func()
    var E func() chan int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 24 19:48:15 UTC 2012
    - 263 bytes
    - Viewed (0)
  6. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/history/changes/Change.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.internal.execution.history.changes;
    
    public interface Change {
        String getMessage();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:46:15 UTC 2023
    - 726 bytes
    - Viewed (0)
  7. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/toolchain/Clang.java

     * limitations under the License.
     */
    
    package org.gradle.nativeplatform.toolchain;
    
    import org.gradle.api.Incubating;
    
    /**
     * The <a href="http://clang.llvm.org">Clang</a> tool chain.
     */
    @Incubating
    public interface Clang extends GccCompatibleToolChain {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 837 bytes
    - Viewed (0)
  8. tensorflow/.clang-format

    # Run manually to reformat a file:
    # clang-format -i --style=file <file>
    BasedOnStyle: Google
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 12 22:28:35 UTC 2017
    - 124 bytes
    - Viewed (0)
  9. .github/ISSUE_TEMPLATE/11-language-change.yml

        id: informal-change
        attributes:
          label: "Informal Change"
          description: "Please also describe the change informally, as in a class teaching Go."
        validations:
          required: false
    
      - type: textarea
        id: go-backwards-compatiblity
        attributes:
          label: Is this change backward compatible?
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 22 20:49:24 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  10. test/ken/chan1.go

    const W = 2    // channel buffering
    var h [N]int   // marking of send/recv
    
    func r(c chan int, m int) {
    	for {
    		select {
    		case r := <-c:
    			if h[r] != 1 {
    				println("r",
    					"m=", m,
    					"r=", r,
    					"h=", h[r])
    				panic("fail")
    			}
    			h[r] = 2
    		}
    	}
    }
    
    func s(c chan int) {
    	for n := 0; n < N; n++ {
    		r := n
    		if h[r] != 0 {
    			println("s")
    			panic("fail")
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 21:47:04 UTC 2012
    - 879 bytes
    - Viewed (0)
Back to top