Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for pthread_attr_init1 (0.15 sec)

  1. src/runtime/os2_aix.go

    	return int32(r)
    }
    
    func pthread_attr_init1(attr uintptr) int32
    
    //go:nosplit
    func pthread_attr_init(attr *pthread_attr) int32 {
    	gp := getg()
    
    	// Check the validity of g because without a g during
    	// newosproc0.
    	if gp != nil {
    		r, _ := syscall1(&libpthread_attr_init, uintptr(unsafe.Pointer(attr)))
    		return int32(r)
    	}
    
    	return pthread_attr_init1(uintptr(unsafe.Pointer(attr)))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  2. src/runtime/os3_solaris.go

    //
    //go:nowritebarrier
    func newosproc(mp *m) {
    	var (
    		attr pthreadattr
    		oset sigset
    		tid  pthread
    		ret  int32
    		size uint64
    	)
    
    	if pthread_attr_init(&attr) != 0 {
    		throw("pthread_attr_init")
    	}
    	// Allocate a new 2MB stack.
    	if pthread_attr_setstack(&attr, 0, 0x200000) != 0 {
    		throw("pthread_attr_setstack")
    	}
    	// Read back the allocated stack.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  3. src/runtime/os_darwin.go

    	if false {
    		print("newosproc stk=", stk, " m=", mp, " g=", mp.g0, " id=", mp.id, " ostk=", &mp, "\n")
    	}
    
    	// Initialize an attribute object.
    	var attr pthreadattr
    	var err int32
    	err = pthread_attr_init(&attr)
    	if err != 0 {
    		writeErrStr(failthreadcreate)
    		exit(1)
    	}
    
    	// Find out OS stack size for our own stack guard.
    	var stacksize uintptr
    	if pthread_attr_getstacksize(&attr, &stacksize) != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  4. 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