- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for pthread_join (0.14 sec)
-
src/cmd/cgo/internal/testsanitizers/testdata/tsan15.go
if (r < 0) break; } return 0; } static void foo() { pthread_t *th = malloc(sizeof(pthread_t)); pthread_t th2; pthread_create(th, 0, thr, 0); pthread_create(&th2, 0, sendthr, th); pthread_join(*th, 0); } */ import "C" import ( "time" ) //export go_callback func go_callback() {} func main() { go func() { for { C.foo() } }()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 06 21:14:49 UTC 2024 - 968 bytes - Viewed (0) -
src/internal/trace/testdata/testprog/cgo-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); } static void bar() { go_callback2(); } */ import "C" import ( "log" "os" "runtime" "runtime/trace" ) //export go_callback func go_callback() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 1.3K bytes - Viewed (0) -
src/cmd/cgo/internal/test/test.go
void testSendSIG() { const int N = 20; int i; pthread_t tid[N]; for (i = 0; i < N; i++) { usleep(rand() % 200 + 100); pthread_create(&tid[i], 0, thread, NULL); } for (i = 0; i < N; i++) pthread_join(tid[i], 0); } #endif // issue 3261 // libgcc on ARM might be compiled as thumb code, but our 5l // can't handle that, so we have to disable this test on arm. #ifdef __ARMEL__ int vabs(int x) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:50:06 UTC 2024 - 48.5K bytes - Viewed (0) -
testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-port.h
pthread_create(&thread_, 0, &ThreadFuncWithCLinkage, base)); } ~ThreadWithParam() { Join(); } void Join() { if (!finished_) { GTEST_CHECK_POSIX_SUCCESS_(pthread_join(thread_, 0)); finished_ = true; } } virtual void Run() { if (thread_can_start_ != NULL) thread_can_start_->WaitForNotification(); func_(param_); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 67.2K bytes - Viewed (0)