- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for _cgo_try_pthread_create (0.82 sec)
-
src/runtime/cgo/gcc_libinit.c
// Gets the context function. void (*(_cgo_get_context_function(void)))(struct context_arg*) { return __atomic_load_n(&cgo_context_function, __ATOMIC_CONSUME); } // _cgo_try_pthread_create retries pthread_create if it fails with // EAGAIN. int _cgo_try_pthread_create(pthread_t* thread, const pthread_attr_t* attr, void* (*pfn)(void*), void* arg) { int tries; int err; struct timespec ts; for (tries = 0; tries < 20; tries++) {
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/libcgo_unix.h
/* * Initialize g->stacklo. */ extern void _cgo_set_stacklo(G *, uintptr *); /* * Call pthread_create, retrying on EAGAIN. */ extern int _cgo_try_pthread_create(pthread_t*, const pthread_attr_t*, void* (*)(void*), void*); /* * Same as _cgo_try_pthread_create, but passing on the pthread_create function. * Only defined on OpenBSD. */
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 22:06:46 UTC 2023 - 684 bytes - Viewed (0) -
src/runtime/cgo/gcc_freebsd.c
pthread_sigmask(SIG_SETMASK, &ign, &oset); pthread_attr_init(&attr); pthread_attr_getstacksize(&attr, &size); // Leave stacklo=0 and set stackhi=size; mstart will do the rest. ts->g->stackhi = size; err = _cgo_try_pthread_create(&p, &attr, threadentry, ts); pthread_sigmask(SIG_SETMASK, &oset, nil); if (err != 0) { fatalf("pthread_create failed: %s", strerror(err)); } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 15 03:40:00 UTC 2023 - 1.5K bytes - Viewed (0) -
src/runtime/cgo/gcc_linux_amd64.c
pthread_sigmask(SIG_SETMASK, &ign, &oset); pthread_attr_init(&attr); pthread_attr_getstacksize(&attr, &size); // Leave stacklo=0 and set stackhi=size; mstart will do the rest. ts->g->stackhi = size; err = _cgo_try_pthread_create(&p, &attr, threadentry, ts); pthread_sigmask(SIG_SETMASK, &oset, nil); if (err != 0) { fatalf("pthread_create failed: %s", strerror(err)); } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 22:06:46 UTC 2023 - 2.3K bytes - Viewed (0) -
src/runtime/cgo/gcc_linux_s390x.c
pthread_sigmask(SIG_SETMASK, &ign, &oset); pthread_attr_init(&attr); pthread_attr_getstacksize(&attr, &size); // Leave stacklo=0 and set stackhi=size; mstart will do the rest. ts->g->stackhi = size; err = _cgo_try_pthread_create(&p, &attr, threadentry, ts); pthread_sigmask(SIG_SETMASK, &oset, nil); if (err != 0) { fatalf("pthread_create failed: %s", strerror(err)); } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 09 03:13:11 UTC 2023 - 1.3K bytes - Viewed (0) -
src/runtime/cgo/gcc_ppc64x.c
pthread_sigmask(SIG_SETMASK, &ign, &oset); pthread_attr_init(&attr); pthread_attr_getstacksize(&attr, &size); // Leave stacklo=0 and set stackhi=size; mstart will do the rest. ts->g->stackhi = size; err = _cgo_try_pthread_create(&p, &attr, threadentry, ts); pthread_sigmask(SIG_SETMASK, &oset, nil); if (err != 0) { fatalf("pthread_create failed: %s", strerror(err)); } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 09 03:13:11 UTC 2023 - 1.3K bytes - Viewed (0) -
src/runtime/cgo/gcc_freebsd_amd64.c
pthread_sigmask(SIG_SETMASK, &ign, &oset); pthread_attr_init(&attr); pthread_attr_getstacksize(&attr, &size); // Leave stacklo=0 and set stackhi=size; mstart will do the rest. ts->g->stackhi = size; err = _cgo_try_pthread_create(&p, &attr, threadentry, ts); pthread_sigmask(SIG_SETMASK, &oset, nil); if (err != 0) { fatalf("pthread_create failed: %s", strerror(err)); } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 22:06:46 UTC 2023 - 1.5K bytes - Viewed (0) -
src/runtime/cgo/gcc_dragonfly_amd64.c
pthread_attr_init(&attr); pthread_attr_getstacksize(&attr, &size); // Leave stacklo=0 and set stackhi=size; mstart will do the rest. ts->g->stackhi = size; err = _cgo_try_pthread_create(&p, &attr, threadentry, ts); pthread_sigmask(SIG_SETMASK, &oset, nil); if (err != 0) { fatalf("pthread_create failed: %s", strerror(err)); } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 15 03:39:26 UTC 2023 - 1.2K bytes - Viewed (0) -
src/runtime/cgo/gcc_openbsd.c
pthread_attr_init(&attr); pthread_attr_getstacksize(&attr, &size); // Leave stacklo=0 and set stackhi=size; mstart will do the rest. ts->g->stackhi = size; err = _cgo_try_pthread_create(&p, &attr, threadentry, ts); pthread_sigmask(SIG_SETMASK, &oset, nil); if (err != 0) { fatalf("pthread_create failed: %s", strerror(err)); } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 15 03:56:03 UTC 2023 - 1.2K bytes - Viewed (0) -
src/runtime/cgo/gcc_darwin_amd64.c
size = pthread_get_stacksize_np(pthread_self()); pthread_attr_init(&attr); pthread_attr_setstacksize(&attr, size); // Leave stacklo=0 and set stackhi=size; mstart will do the rest. ts->g->stackhi = size; err = _cgo_try_pthread_create(&p, &attr, threadentry, ts); pthread_sigmask(SIG_SETMASK, &oset, nil); if (err != 0) { fprintf(stderr, "runtime/cgo: pthread_create failed: %s\n", strerror(err)); abort(); } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Aug 12 03:56:28 UTC 2023 - 1.3K bytes - Viewed (0)