Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for pthread_attr_setdetachstate (0.35 sec)

  1. 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)
  2. 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)
  3. 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)
Back to top