- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for pthread_detach (0.1 sec)
-
src/runtime/cgo/gcc_libinit.c
int tries; int err; struct timespec ts; for (tries = 0; tries < 20; tries++) { err = pthread_create(thread, attr, pfn, arg); if (err == 0) { pthread_detach(*thread); return 0; } if (err != EAGAIN) { return err; } ts.tv_sec = 0; ts.tv_nsec = (tries + 1) * 1000 * 1000; // Milliseconds. nanosleep(&ts, nil); } return EAGAIN;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 01:07:18 UTC 2024 - 5.8K bytes - Viewed (0)