- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for pthread_attr_getstacksize (0.35 sec)
-
src/runtime/cgo/gcc_stack_unix.c
pthread_attr_getstack(&attr, &addr, &size); // low address #else // We don't know how to get the current stacks, so assume they are the // same as the default stack bounds. pthread_attr_getstacksize(&attr, &size); addr = __builtin_frame_address(0) + 4096 - size; #endif pthread_attr_destroy(&attr); // bounds points into the Go stack. TSAN can't see the synchronization // in Go around stack reuse.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 03:44:11 UTC 2024 - 1.5K bytes - Viewed (0) -
src/runtime/sys_darwin.go
KeepAlive(attr) return ret } func pthread_attr_init_trampoline() //go:nosplit //go:cgo_unsafe_args func pthread_attr_getstacksize(attr *pthreadattr, size *uintptr) int32 { ret := libcCall(unsafe.Pointer(abi.FuncPCABI0(pthread_attr_getstacksize_trampoline)), unsafe.Pointer(&attr)) KeepAlive(attr) KeepAlive(size) 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) -
src/internal/trace/testdata/testprog/cgo-callback.go
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 ( "log" "os" "runtime"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 1.3K bytes - Viewed (0)