Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for pthread_attr_setdetachstate (0.32 sec)

  1. src/runtime/sys_openbsd.go

    	KeepAlive(attr)
    	KeepAlive(size)
    	return ret
    }
    func pthread_attr_getstacksize_trampoline()
    
    //go:nosplit
    //go:cgo_unsafe_args
    func pthread_attr_setdetachstate(attr *pthreadattr, state int) int32 {
    	ret := libcCall(unsafe.Pointer(abi.FuncPCABI0(pthread_attr_setdetachstate_trampoline)), unsafe.Pointer(&attr))
    	KeepAlive(attr)
    	return ret
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 30 03:11:18 UTC 2021
    - 2.6K bytes
    - Viewed (0)
  2. src/runtime/os_aix.go

    		throw("pthread_attr_init")
    	}
    
    	if pthread_attr_setstacksize(&attr, threadStackSize) != 0 {
    		throw("pthread_attr_getstacksize")
    	}
    
    	if pthread_attr_setdetachstate(&attr, _PTHREAD_CREATE_DETACHED) != 0 {
    		throw("pthread_attr_setdetachstate")
    	}
    
    	// Disable signals during create, so that the new thread starts
    	// with signals disabled. It will enable them in minit.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  3. src/runtime/os_openbsd_libc.go

    		writeErrStr(failthreadcreate)
    		exit(1)
    	}
    	mp.g0.stack.hi = stacksize // for mstart
    
    	// Tell the pthread library we won't join with this thread.
    	if pthread_attr_setdetachstate(&attr, _PTHREAD_CREATE_DETACHED) != 0 {
    		writeErrStr(failthreadcreate)
    		exit(1)
    	}
    
    	// Finally, create the thread. It starts at mstart_stub, which does some low-level
    	// setup and then calls mstart.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 10 20:44:45 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  4. src/runtime/cgo/gcc_solaris_amd64.c

    	if (size == 0) {
    		ts->g->stackhi = 2 << 20;
    		if (pthread_attr_setstack(&attr, NULL, ts->g->stackhi) != 0)
    			perror("runtime/cgo: pthread_attr_setstack failed");
    	} else {
    		ts->g->stackhi = size;
    	}
    	pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
    	err = _cgo_try_pthread_create(&p, &attr, threadentry, ts);
    
    	pthread_sigmask(SIG_SETMASK, &oset, nil);
    
    	if (err != 0) {
    		fatalf("pthread_create failed: %s", strerror(err));
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 14:57:16 UTC 2023
    - 2K bytes
    - Viewed (0)
  5. src/runtime/os3_solaris.go

    	if pthread_attr_getstack(&attr, unsafe.Pointer(&mp.g0.stack.hi), &size) != 0 {
    		throw("pthread_attr_getstack")
    	}
    	mp.g0.stack.lo = mp.g0.stack.hi - uintptr(size)
    	if pthread_attr_setdetachstate(&attr, _PTHREAD_CREATE_DETACHED) != 0 {
    		throw("pthread_attr_setdetachstate")
    	}
    
    	// Disable signals during create, so that the new thread starts
    	// with signals disabled. It will enable them in minit.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  6. src/runtime/os_darwin.go

    		writeErrStr(failthreadcreate)
    		exit(1)
    	}
    	mp.g0.stack.hi = stacksize // for mstart
    
    	// Tell the pthread library we won't join with this thread.
    	if pthread_attr_setdetachstate(&attr, _PTHREAD_CREATE_DETACHED) != 0 {
    		writeErrStr(failthreadcreate)
    		exit(1)
    	}
    
    	// Finally, create the thread. It starts at mstart_stub, which does some low-level
    	// setup and then calls mstart.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  7. src/runtime/cgo/gcc_signal_ios_arm64.c

    	sigfillset(&ign);
    	pthread_sigmask(SIG_SETMASK, &ign, &oset);
    
    	// Start a thread to handle exceptions.
    	uintptr_t port_set = (uintptr_t)mach_exception_handler_port_set;
    	pthread_attr_init(&attr);
    	pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
    	ret = _cgo_try_pthread_create(&thr, &attr, mach_exception_handler, (void*)port_set);
    
    	pthread_sigmask(SIG_SETMASK, &oset, nil);
    
    	if (ret) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 21:04:22 UTC 2024
    - 6K bytes
    - Viewed (0)
  8. src/runtime/os2_aix.go

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

    	KeepAlive(attr)
    	KeepAlive(size)
    	return ret
    }
    func pthread_attr_getstacksize_trampoline()
    
    //go:nosplit
    //go:cgo_unsafe_args
    func pthread_attr_setdetachstate(attr *pthreadattr, state int) int32 {
    	ret := libcCall(unsafe.Pointer(abi.FuncPCABI0(pthread_attr_setdetachstate_trampoline)), unsafe.Pointer(&attr))
    	KeepAlive(attr)
    	return ret
    }
    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