Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for Phread (0.2 sec)

  1. src/cmd/cgo/internal/test/issue18146.go

    		var rlim syscall.Rlimit
    		if syscall.Getrlimit(nproc, &rlim) == nil {
    			max := int(rlim.Cur) / (threads + 5)
    			if attempts > max {
    				t.Logf("lowering attempts from %d to %d for RLIMIT_NPROC", attempts, max)
    				attempts = max
    			}
    		}
    	}
    
    	if os.Getenv("test18146") == "exec" {
    		runtime.GOMAXPROCS(1)
    		for n := threads; n > 0; n-- {
    			go func() {
    				for {
    					_ = md5.Sum([]byte("Hello, !"))
    				}
    			}()
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Sep 05 23:35:32 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  2. src/cmd/cgo/doc.go

    When using cgo, Go must not assume that it owns all details of the
    process. In particular it needs to coordinate with C in the use of
    threads and thread-local storage. The runtime package declares a few
    variables:
    
    	var (
    		iscgo             bool
    		_cgo_init         unsafe.Pointer
    		_cgo_thread_start unsafe.Pointer
    	)
    
    Any package using cgo imports "runtime/cgo", which provides
    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)
  3. src/bufio/bufio_test.go

    	buf := make([]byte, 1)
    	if _, err := b.Read(nil); err != nil {
    		t.Fatalf("1st nil Read = %v; want nil", err)
    	}
    	if _, err := b.Read(buf); err != errFake {
    		t.Fatalf("1st Read = %v; want errFake", err)
    	}
    	if _, err := b.Read(nil); err != nil {
    		t.Fatalf("2nd nil Read = %v; want nil", err)
    	}
    	if _, err := b.Read(buf); err != nil {
    		t.Fatalf("3rd Read with buffer = %v; want nil", err)
    	}
    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/cgo/internal/test/callback.go

    	if lockedOSThread() {
    		t.Fatal("locked OS thread on entry to TestCallbackPanic")
    	}
    	defer func() {
    		s := recover()
    		if s == nil {
    			t.Fatal("did not panic")
    		}
    		if s.(string) != "callback panic" {
    			t.Fatal("wrong panic:", s)
    		}
    		if lockedOSThread() {
    			t.Fatal("locked OS thread on exit from TestCallbackPanic")
    		}
    	}()
    	nestedCall(func() { panic("callback panic") })
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 111.5K bytes
    - Viewed (0)
  5. doc/go1.17_spec.html

    <code>T</code>’s embedded interfaces.
    </p>
    
    <pre>
    type Reader interface {
    	Read(p []byte) (n int, err error)
    	Close() error
    }
    
    type Writer interface {
    	Write(p []byte) (n int, err error)
    	Close() error
    }
    
    // ReadWriter's methods are Read, Write, and Close.
    type ReadWriter interface {
    	Reader  // includes methods of Reader in ReadWriter's method set
    HTML
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/test/issue1435.go

    //   int i;
    //   nts = argc;
    //   t = calloc(nts, sizeof(pthread_t));
    //   pthread_mutex_init(&mu, NULL);
    //   for (i = 0; i < nts; i++) {
    //     pthread_create(&t[i], NULL, aFn, NULL);
    //   }
    // }
    //
    // void cleanup(void) {
    //   int i;
    //   pthread_mutex_lock(&mu);
    //   all_done = 1;
    //   pthread_mutex_unlock(&mu);
    //   for (i = 0; i < nts; i++) {
    //     pthread_join(t[i], NULL);
    //   }
    //   pthread_mutex_destroy(&mu);
    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)
  7. src/bytes/buffer.go

    }
    
    var errUnreadByte = errors.New("bytes.Buffer: UnreadByte: previous operation was not a successful read")
    
    // UnreadByte unreads the last byte returned by the most recent successful
    // read operation that read at least one byte. If a write has happened since
    // the last read, if the last read returned an error, or if the read read zero
    // bytes, UnreadByte returns an error.
    func (b *Buffer) UnreadByte() error {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  8. api/go1.16.txt

    pkg syscall (darwin-arm64), const SYS___PTHREAD_CANCELED = 333
    pkg syscall (darwin-arm64), const SYS___PTHREAD_CANCELED ideal-int
    pkg syscall (darwin-arm64), const SYS___PTHREAD_CHDIR = 348
    pkg syscall (darwin-arm64), const SYS___PTHREAD_CHDIR ideal-int
    pkg syscall (darwin-arm64), const SYS___PTHREAD_FCHDIR = 349
    pkg syscall (darwin-arm64), const SYS___PTHREAD_FCHDIR ideal-int
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Dec 02 16:30:41 GMT 2022
    - 479.2K bytes
    - Viewed (0)
  9. api/go1.txt

    pkg debug/macho, type SymtabCmd struct, Strsize uint32
    pkg debug/macho, type SymtabCmd struct, Symoff uint32
    pkg debug/macho, type Thread struct
    pkg debug/macho, type Thread struct, Cmd LoadCmd
    pkg debug/macho, type Thread struct, Data []uint32
    pkg debug/macho, type Thread struct, Len uint32
    pkg debug/macho, type Thread struct, Type uint32
    pkg debug/macho, type Type uint32
    pkg debug/pe, const IMAGE_FILE_MACHINE_AM33 ideal-int
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (1)
  10. api/go1.14.txt

    pkg syscall (freebsd-arm64), const RUSAGE_SELF = 0
    pkg syscall (freebsd-arm64), const RUSAGE_SELF ideal-int
    pkg syscall (freebsd-arm64), const RUSAGE_THREAD = 1
    pkg syscall (freebsd-arm64), const RUSAGE_THREAD ideal-int
    pkg syscall (freebsd-arm64), const S_IFMT = 61440
    pkg syscall (freebsd-arm64), const S_IRWXG = 56
    pkg syscall (freebsd-arm64), const S_IRWXG ideal-int
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Feb 17 20:31:46 GMT 2023
    - 508.9K bytes
    - Viewed (0)
Back to top