Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for stop (0.18 sec)

  1. src/cmd/cgo/doc.go

    present to create such a binary.
    
    Most builds both compile source code and invoke the linker to create a
    binary. When cgo is involved, the compile step already requires gcc, so
    it is not problematic for the link step to require gcc too.
    
    An important exception is builds using a pre-compiled copy of the
    standard library. In particular, package net uses cgo on most systems,
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  2. api/go1.5.txt

    pkg runtime, func StartTrace() error
    pkg runtime, func StopTrace()
    pkg runtime, type MemStats struct, GCCPUFraction float64
    pkg runtime/trace, func Start(io.Writer) error
    pkg runtime/trace, func Stop()
    pkg strings, func Compare(string, string) int
    pkg strings, func LastIndexByte(string, uint8) int
    pkg strings, method (*Reader) Size() int64
    pkg syscall (darwin-386), type SysProcAttr struct, Ctty int
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jul 30 21:14:09 GMT 2015
    - 46.6K bytes
    - Viewed (0)
  3. api/go1.13.txt

    pkg syscall (netbsd-arm64-cgo), const TIOCPKT_START = 8
    pkg syscall (netbsd-arm64-cgo), const TIOCPKT_START ideal-int
    pkg syscall (netbsd-arm64-cgo), const TIOCPKT_STOP = 4
    pkg syscall (netbsd-arm64-cgo), const TIOCPKT_STOP ideal-int
    pkg syscall (netbsd-arm64-cgo), const TIOCPTMGET = 1076393030
    pkg syscall (netbsd-arm64-cgo), const TIOCPTMGET ideal-int
    pkg syscall (netbsd-arm64-cgo), const TIOCPTSNAME = 1076393032
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Aug 08 18:44:16 GMT 2019
    - 452.6K bytes
    - Viewed (0)
  4. doc/go1.17_spec.html

    Comments serve as program documentation. There are two forms:
    </p>
    
    <ol>
    <li>
    <i>Line comments</i> start with the character sequence <code>//</code>
    and stop at the end of the line.
    </li>
    <li>
    <i>General comments</i> start with the character sequence <code>/*</code>
    and stop with the first subsequent character sequence <code>*/</code>.
    </li>
    </ol>
    
    <p>
    A comment cannot start inside a <a href="#Rune_literals">rune</a> or
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  5. src/bufio/bufio_test.go

    	}
    }
    
    // A StringReader delivers its data one string segment at a time via Read.
    type StringReader struct {
    	data []string
    	step int
    }
    
    func (r *StringReader) Read(p []byte) (n int, err error) {
    	if r.step < len(r.data) {
    		s := r.data[r.step]
    		n = copy(p, s)
    		r.step++
    	} else {
    		err = io.EOF
    	}
    	return
    }
    
    func readRuneSegments(t *testing.T, segments []string) {
    	got := ""
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  6. src/bytes/buffer_test.go

    	b.Write(buf[0:1])
    	var cap0 int
    	for i := 0; i < 5<<10; i++ {
    		b.Write(buf)
    		b.Read(buf)
    		if i == 0 {
    			cap0 = b.Cap()
    		}
    	}
    	cap1 := b.Cap()
    	// (*Buffer).grow allows for 2x capacity slop before sliding,
    	// so set our error threshold at 3x.
    	if cap1 > cap0*3 {
    		t.Errorf("buffer cap = %d; too big (grew from %d)", cap1, cap0)
    	}
    }
    
    func BenchmarkWriteByte(b *testing.B) {
    	const n = 4 << 10
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 13:31:36 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  7. doc/next/6-stdlib/1-time.md

    `Stop` methods have not been called.
    Earlier versions of Go did not collect unstopped `Timer`s until after
    they had fired and never collected unstopped `Ticker`s.
    
    Second, the timer channel associated with a `Timer` or `Ticker` is
    now unbuffered, with capacity 0.
    The main effect of this change is that Go now guarantees
    that for any call to a `Reset` or `Stop` method, no stale values
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 12 20:57:18 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/test/cgo_thread_lock.go

    	testThreadLockFunc = testThreadLock
    }
    
    func testThreadLock(t *testing.T) {
    	stop := make(chan int)
    	go func() {
    		// We need the G continue running,
    		// so the M has a chance to run this G.
    		for {
    			select {
    			case <-stop:
    				return
    			case <-time.After(time.Millisecond * 100):
    			}
    		}
    	}()
    	defer close(stop)
    
    	for i := 0; i < 1000; i++ {
    		if !C.Ctid() {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu May 18 16:55:07 GMT 2023
    - 939 bytes
    - Viewed (0)
  9. src/bytes/bytes.go

    			break
    		}
    	}
    
    	// Now look for the first ASCII non-space byte from the end
    	stop := len(s)
    	for ; stop > start; stop-- {
    		c := s[stop-1]
    		if c >= utf8.RuneSelf {
    			return TrimFunc(s[start:stop], unicode.IsSpace)
    		}
    		if asciiSpace[c] == 0 {
    			break
    		}
    	}
    
    	// At this point s[start:stop] starts and ends with an ASCII
    	// non-space bytes, so we're done. Non-ASCII cases have already
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  10. src/bufio/example_test.go

    			return 0, data, bufio.ErrFinalToken
    		}
    		// If the token is "STOP", stop the scanning and ignore the rest.
    		if string(data[:i]) == "STOP" {
    			return i + 1, nil, bufio.ErrFinalToken
    		}
    		// Otherwise, return the token before the comma.
    		return i + 1, data[:i], nil
    	}
    	const input = "1,2,STOP,4,"
    	scanner := bufio.NewScanner(strings.NewReader(input))
    	scanner.Split(onComma)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 4.9K bytes
    - Viewed (0)
Back to top