- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for pthread_key_destructor (0.37 sec)
-
src/runtime/cgo/gcc_libinit.c
static int runtime_init_done; // pthread_g is a pthread specific key, for storing the g that binded to the C thread. // The registered pthread_key_destructor will dropm, when the pthread-specified value g is not NULL, // while a C thread is exiting. static pthread_key_t pthread_g; static void pthread_key_destructor(void* g); uintptr_t x_cgo_pthread_key_created; void (*x_crosscall2_ptr)(void (*fn)(void *), void *, int, size_t);
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 01:07:18 UTC 2024 - 5.8K bytes - Viewed (0) -
src/runtime/cgo/callbacks.go
func set_crosscall2() //go:linkname _set_crosscall2 runtime.set_crosscall2 var _set_crosscall2 = set_crosscall2 // Store the g into the thread-specific value. // So that pthread_key_destructor will dropm when the thread is exiting. //go:cgo_import_static x_cgo_bindm //go:linkname x_cgo_bindm x_cgo_bindm //go:linkname _cgo_bindm _cgo_bindm var x_cgo_bindm byte var _cgo_bindm = &x_cgo_bindm
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 17 21:53:11 UTC 2023 - 5.6K bytes - Viewed (0) -
src/runtime/proc.go
// to register a thread-exit-time destructor. // We are here setting the thread-specific value of the pthread key, to enable the destructor. // So that the pthread_key_destructor would dropm while the C thread is exiting. // // And the saved g will be used in pthread_key_destructor, // since the g stored in the TLS by Go might be cleared in some platforms, // before the destructor invoked, so, we restore g by the stored g, before dropm. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 207.5K bytes - Viewed (0)