Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for pthread_attr_init1 (0.5 sec)

  1. src/runtime/cgo/gcc_stack_unix.c

    void
    x_cgo_getstackbound(uintptr bounds[2])
    {
    	pthread_attr_t attr;
    	void *addr;
    	size_t size;
    
    	// Needed before pthread_getattr_np, too, since before glibc 2.32
    	// it did not call pthread_attr_init in all cases (see #65625).
    	pthread_attr_init(&attr);
    #if defined(__GLIBC__) || (defined(__sun) && !defined(__illumos__))
    	// pthread_getattr_np is a GNU extension supported in glibc.
    	// Solaris is not glibc but does support pthread_getattr_np
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 03:44:11 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  2. src/internal/trace/testdata/testprog/cgo-callback.go

    #include <pthread.h>
    
    void go_callback();
    void go_callback2();
    
    static void *thr(void *arg) {
        go_callback();
        return 0;
    }
    
    static void foo() {
        pthread_t th;
        pthread_attr_t attr;
        pthread_attr_init(&attr);
        pthread_attr_setstacksize(&attr, 256 << 10);
        pthread_create(&th, &attr, thr, 0);
        pthread_join(th, 0);
    }
    
    static void bar() {
        go_callback2();
    }
    */
    import "C"
    
    import (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  3. src/runtime/sys_darwin.go

    // and then call the underlying libc function.  They are defined in sys_darwin_$ARCH.s.
    
    //go:nosplit
    //go:cgo_unsafe_args
    func pthread_attr_init(attr *pthreadattr) int32 {
    	ret := libcCall(unsafe.Pointer(abi.FuncPCABI0(pthread_attr_init_trampoline)), unsafe.Pointer(&attr))
    	KeepAlive(attr)
    	return ret
    }
    func pthread_attr_init_trampoline()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 23.9K bytes
    - Viewed (0)
Back to top