- Sort Score
- Result 10 results
- Languages All
Results 21 - 24 of 24 for pthread_join (0.6 sec)
-
src/runtime/testdata/testprogcgo/numgoroutine.go
static void* thread2(void* arg __attribute__ ((unused))) { CallbackNumGoroutine(); return NULL; } static void CheckNumGoroutine() { pthread_t tid; pthread_create(&tid, NULL, thread2, NULL); pthread_join(tid, NULL); } */ import "C" import ( "fmt" "runtime" "strings" ) var baseGoroutines int func init() { register("NumGoroutine", NumGoroutine) } func NumGoroutine() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 22:52:37 UTC 2023 - 1.9K bytes - Viewed (0) -
src/runtime/testdata/testprogcgo/sigstack.go
return NULL; } static void DoThread(int sigstack) { pthread_t tid; if (sigstack) { pthread_create(&tid, NULL, WithSigStack, NULL); } else { pthread_create(&tid, NULL, WithoutSigStack, NULL); } pthread_join(tid, NULL); } */ import "C" func init() { register("SigStack", SigStack) } func SigStack() { C.DoThread(0) C.DoThread(1) C.DoThread(0) C.DoThread(1) println("OK") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 2.1K bytes - Viewed (0) -
src/runtime/testdata/testprogcgo/callback.go
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); } */ import "C" import ( "fmt" "os" "runtime" "sync/atomic" _ "unsafe" // for go:linkname ) func init() { register("CgoCallbackGC", CgoCallbackGC) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 01 14:05:01 UTC 2023 - 1.9K bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue1435.go
// } // } // // void cleanup(void) { // int i; // pthread_mutex_lock(&mu); // all_done = 1; // pthread_mutex_unlock(&mu); // for (i = 0; i < nts; i++) { // pthread_join(t[i], NULL); // } // pthread_mutex_destroy(&mu); // free(t); // } import "C" // compareStatus is used to confirm the contents of the thread // specific status files match expectations.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jul 28 21:31:41 UTC 2023 - 7.5K bytes - Viewed (0)