Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 89 for Done (0.16 sec)

  1. misc/chrome/gophertool/README.txt

    To install:
    
    1) chrome://extensions/
    2) click "[+] Developer Mode" in top right
    3) "Load unpacked extension..."
    4) pick $GOROOT/misc/chrome/gophertool
    
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon May 23 21:27:51 GMT 2011
    - 194 bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/test/issue1435.go

    // #include <unistd.h>
    // #include <sys/types.h>
    //
    // pthread_t *t = NULL;
    // pthread_mutex_t mu;
    // int nts = 0;
    // int all_done = 0;
    //
    // static void *aFn(void *vargp) {
    //   int done = 0;
    //   while (!done) {
    //     usleep(100);
    //     pthread_mutex_lock(&mu);
    //     done = all_done;
    //     pthread_mutex_unlock(&mu);
    //   }
    //   return NULL;
    // }
    //
    // void trial(int argc) {
    //   int i;
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Jul 28 21:31:41 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  3. src/bufio/bufio_test.go

    				}
    				break
    			}
    			if want := testOutput[done : done+len(line)]; !bytes.Equal(want, line) {
    				t.Errorf("Bad line at stride %d: want: %x got: %x", stride, want, line)
    			}
    			done += len(line)
    		}
    		if done != len(testOutput) {
    			t.Errorf("ReadLine didn't return everything: got: %d, want: %d (stride: %d)", done, len(testOutput), stride)
    		}
    	}
    }
    
    func TestReadLine(t *testing.T) {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  4. src/cmd/api/api_test.go

    }
    
    var warmupCache = sync.OnceFunc(func() {
    	// Warm up the import cache in parallel.
    	var wg sync.WaitGroup
    	for _, context := range contexts {
    		context := context
    		wg.Add(1)
    		go func() {
    			defer wg.Done()
    			_ = NewWalker(context, filepath.Join(testenv.GOROOT(nil), "src"))
    		}()
    	}
    	wg.Wait()
    })
    
    func TestIssue21181(t *testing.T) {
    	if testing.Short() {
    		t.Skip("skipping with -short")
    	}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Jan 04 17:31:12 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  5. src/archive/zip/reader_test.go

    	// test simultaneous reads
    	n := 0
    	done := make(chan bool)
    	for i := 0; i < 5; i++ {
    		for j, ft := range zt.File {
    			go func(j int, ft ZipTestFile) {
    				readTestFile(t, zt, ft, z.File[j], raw)
    				done <- true
    			}(j, ft)
    			n++
    		}
    	}
    	for ; n > 0; n-- {
    		<-done
    	}
    }
    
    func equalTimeAndZone(t1, t2 time.Time) bool {
    	name1, offset1 := t1.Zone()
    	name2, offset2 := t2.Zone()
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  6. src/cmd/cgo/doc.go

    What happens at link time depends on whether the final binary is linked
    using the internal or external mode. If other packages are compiled in
    "external only" mode, then the final link will be an external one.
    Otherwise the link will be an internal one.
    
    The linking directives are used according to the kind of final link
    used.
    
    In internal mode, cmd/link itself processes all the host object files, in
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  7. doc/go_mem.html

    </p>
    
    <pre>
    var a string
    var done bool
    
    func setup() {
    	a = "hello, world"
    	done = true
    }
    
    func doprint() {
    	if !done {
    		once.Do(setup)
    	}
    	print(a)
    }
    
    func twoprint() {
    	go doprint()
    	go doprint()
    }
    </pre>
    
    <p>
    but there is no guarantee that, in <code>doprint</code>, observing the write to <code>done</code>
    HTML
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Mar 04 15:54:42 GMT 2024
    - 26.6K bytes
    - Viewed (0)
  8. src/cmd/cgo/gcc.go

    			for _, r := range f.Ref {
    				if r.Expr == px {
    					*px = p.rewriteName(f, r, addPosition)
    					r.Done = true
    					break
    				}
    			}
    
    			return
    		}
    
    		call, ok := (*px).(*ast.CallExpr)
    		if !ok {
    			return
    		}
    
    		for _, c := range f.Calls {
    			if !c.Done && c.Call.Lparen == call.Lparen {
    				cstr, nu := p.rewriteCall(f, c)
    				if cstr != "" {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  9. api/go1.13.txt

    pkg syscall (netbsd-arm64-cgo), const IPPROTO_CARP = 112
    pkg syscall (netbsd-arm64-cgo), const IPPROTO_CARP ideal-int
    pkg syscall (netbsd-arm64-cgo), const IPPROTO_DONE = 257
    pkg syscall (netbsd-arm64-cgo), const IPPROTO_DONE ideal-int
    pkg syscall (netbsd-arm64-cgo), const IPPROTO_DSTOPTS = 60
    pkg syscall (netbsd-arm64-cgo), const IPPROTO_DSTOPTS ideal-int
    pkg syscall (netbsd-arm64-cgo), const IPPROTO_EGP = 8
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Aug 08 18:44:16 GMT 2019
    - 452.6K bytes
    - Viewed (0)
  10. src/bytes/reader_test.go

    	// See golang.org/issue/7856
    	r := NewReader([]byte{})
    	var wg sync.WaitGroup
    	for i := 0; i < 5; i++ {
    		wg.Add(2)
    		go func() {
    			defer wg.Done()
    			var buf [1]byte
    			r.Read(buf[:])
    		}()
    		go func() {
    			defer wg.Done()
    			r.Read(nil)
    		}()
    	}
    	wg.Wait()
    }
    
    func TestReaderWriteTo(t *testing.T) {
    	for i := 0; i < 30; i += 3 {
    		var l int
    		if i > 0 {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Dec 13 18:45:54 GMT 2021
    - 8K bytes
    - Viewed (0)
Back to top