/glibc-2.36/nptl/ |
D | pthread_getattr_np.c | 41 struct pthread_attr *iattr = (struct pthread_attr *) attr; in __pthread_getattr_np() local 47 memcpy (&iattr->schedparam, &thread->schedparam, in __pthread_getattr_np() 49 iattr->schedpolicy = thread->schedpolicy; in __pthread_getattr_np() 52 iattr->flags = thread->flags; in __pthread_getattr_np() 56 iattr->flags |= ATTR_FLAG_DETACHSTATE; in __pthread_getattr_np() 59 iattr->guardsize = thread->reported_guardsize; in __pthread_getattr_np() 66 iattr->stacksize = thread->stackblock_size - thread->guardsize; in __pthread_getattr_np() 68 iattr->stackaddr = (char *) thread->stackblock in __pthread_getattr_np() 71 iattr->stackaddr = (char *) thread->stackblock; in __pthread_getattr_np() 133 iattr->stackaddr = stack_end; in __pthread_getattr_np() [all …]
|
D | pthread_attr_setstack.c | 33 struct pthread_attr *iattr; in __pthread_attr_setstack() local 35 iattr = (struct pthread_attr *) attr; in __pthread_attr_setstack() 46 iattr->stacksize = stacksize; in __pthread_attr_setstack() 48 iattr->stackaddr = (char *) stackaddr + stacksize; in __pthread_attr_setstack() 50 iattr->stackaddr = (char *) stackaddr; in __pthread_attr_setstack() 52 iattr->flags |= ATTR_FLAG_STACKADDR; in __pthread_attr_setstack() 75 struct pthread_attr *iattr; in __old_pthread_attr_setstack() local 77 iattr = (struct pthread_attr *) attr; in __old_pthread_attr_setstack() 87 iattr->stacksize = stacksize; in __old_pthread_attr_setstack() 89 iattr->stackaddr = (char *) stackaddr + stacksize; in __old_pthread_attr_setstack() [all …]
|
D | pthread_attr_setaffinity.c | 30 struct pthread_attr *iattr; in __pthread_attr_setaffinity_np() local 32 iattr = (struct pthread_attr *) attr; in __pthread_attr_setaffinity_np() 36 if (iattr->extension != NULL) in __pthread_attr_setaffinity_np() 38 free (iattr->extension->cpuset); in __pthread_attr_setaffinity_np() 39 iattr->extension->cpuset = NULL; in __pthread_attr_setaffinity_np() 40 iattr->extension->cpusetsize = 0; in __pthread_attr_setaffinity_np() 45 int ret = __pthread_attr_extension (iattr); in __pthread_attr_setaffinity_np() 49 if (iattr->extension->cpusetsize != cpusetsize) in __pthread_attr_setaffinity_np() 51 void *newp = realloc (iattr->extension->cpuset, cpusetsize); in __pthread_attr_setaffinity_np() 55 iattr->extension->cpuset = newp; in __pthread_attr_setaffinity_np() [all …]
|
D | pthread_attr_getaffinity.c | 31 const struct pthread_attr *iattr; in __pthread_attr_getaffinity_new() local 33 iattr = (const struct pthread_attr *) attr; in __pthread_attr_getaffinity_new() 35 if (iattr->extension != NULL && iattr->extension->cpuset != NULL) in __pthread_attr_getaffinity_new() 39 for (size_t cnt = cpusetsize; cnt < iattr->extension->cpusetsize; ++cnt) in __pthread_attr_getaffinity_new() 40 if (((char *) iattr->extension->cpuset)[cnt] != 0) in __pthread_attr_getaffinity_new() 47 void *p = mempcpy (cpuset, iattr->extension->cpuset, in __pthread_attr_getaffinity_new() 48 MIN (iattr->extension->cpusetsize, cpusetsize)); in __pthread_attr_getaffinity_new() 49 if (cpusetsize > iattr->extension->cpusetsize) in __pthread_attr_getaffinity_new() 50 memset (p, '\0', cpusetsize - iattr->extension->cpusetsize); in __pthread_attr_getaffinity_new()
|
D | pthread_create.c | 636 const struct pthread_attr *iattr = (struct pthread_attr *) attr; in __pthread_create_2_1() local 640 if (iattr == NULL || c11) in __pthread_create_2_1() 646 iattr = &default_attr.internal; in __pthread_create_2_1() 650 int err = allocate_stack (iattr, &pd, &stackaddr, &stacksize); in __pthread_create_2_1() 684 pd->flags = ((iattr->flags & ~(ATTR_FLAG_SCHED_SET | ATTR_FLAG_POLICY_SET)) in __pthread_create_2_1() 695 pd->joinid = iattr->flags & ATTR_FLAG_DETACHSTATE ? pd : NULL; in __pthread_create_2_1() 725 if (__builtin_expect ((iattr->flags & ATTR_FLAG_NOTINHERITSCHED) != 0, 0) in __pthread_create_2_1() 726 && (iattr->flags & (ATTR_FLAG_SCHED_SET | ATTR_FLAG_POLICY_SET)) != 0) in __pthread_create_2_1() 729 if (iattr->flags & ATTR_FLAG_POLICY_SET) in __pthread_create_2_1() 731 pd->schedpolicy = iattr->schedpolicy; in __pthread_create_2_1() [all …]
|
D | pthread_attr_setsigmask_internal.c | 26 struct pthread_attr *iattr = (struct pthread_attr *) attr; in __pthread_attr_setsigmask_internal() local 31 if (iattr->extension != NULL) in __pthread_attr_setsigmask_internal() 32 iattr->extension->sigmask_set = false; in __pthread_attr_setsigmask_internal() 36 int ret = __pthread_attr_extension (iattr); in __pthread_attr_setsigmask_internal() 40 iattr->extension->sigmask = *sigmask; in __pthread_attr_setsigmask_internal() 41 iattr->extension->sigmask_set = true; in __pthread_attr_setsigmask_internal()
|
D | pthread_attr_destroy.c | 27 struct pthread_attr *iattr; in __pthread_attr_destroy() local 29 iattr = (struct pthread_attr *) attr; in __pthread_attr_destroy() 33 if (__builtin_expect ((iattr->flags & ATTR_FLAG_OLDATTR), 0) == 0) in __pthread_attr_destroy() 36 if (iattr->extension != NULL) in __pthread_attr_destroy() 38 free (iattr->extension->cpuset); in __pthread_attr_destroy() 39 free (iattr->extension); in __pthread_attr_destroy()
|
D | pthread_attr_getstack.c | 25 struct pthread_attr *iattr; in __pthread_attr_getstack() local 27 iattr = (struct pthread_attr *) attr; in __pthread_attr_getstack() 31 *stackaddr = (char *) iattr->stackaddr - iattr->stacksize; in __pthread_attr_getstack() 33 *stackaddr = (char *) iattr->stackaddr; in __pthread_attr_getstack() 35 *stacksize = iattr->stacksize; in __pthread_attr_getstack()
|
D | pthread_attr_init.c | 33 struct pthread_attr *iattr; in __pthread_attr_init() local 43 iattr = (struct pthread_attr *) attr; in __pthread_attr_init() 46 iattr->guardsize = __getpagesize (); in __pthread_attr_init() 69 struct pthread_attr *iattr; in __pthread_attr_init_2_0() local 76 iattr = (struct pthread_attr *) attr; in __pthread_attr_init_2_0() 77 iattr->flags |= ATTR_FLAG_OLDATTR; in __pthread_attr_init_2_0()
|
D | pthread_attr_setstacksize.c | 31 struct pthread_attr *iattr; in __pthread_attr_setstacksize() local 33 iattr = (struct pthread_attr *) attr; in __pthread_attr_setstacksize() 40 iattr->stacksize = stacksize; in __pthread_attr_setstacksize() 64 struct pthread_attr *iattr; in __old_pthread_attr_setstacksize() local 66 iattr = (struct pthread_attr *) attr; in __old_pthread_attr_setstacksize() 76 iattr->stacksize = stacksize; in __old_pthread_attr_setstacksize()
|
D | pthread_attr_setschedpolicy.c | 25 struct pthread_attr *iattr; in __pthread_attr_setschedpolicy() local 27 iattr = (struct pthread_attr *) attr; in __pthread_attr_setschedpolicy() 35 iattr->schedpolicy = policy; in __pthread_attr_setschedpolicy() 38 iattr->flags |= ATTR_FLAG_POLICY_SET; in __pthread_attr_setschedpolicy()
|
D | pthread_attr_setinheritsched.c | 25 struct pthread_attr *iattr; in __pthread_attr_setinheritsched() local 27 iattr = (struct pthread_attr *) attr; in __pthread_attr_setinheritsched() 35 iattr->flags |= ATTR_FLAG_NOTINHERITSCHED; in __pthread_attr_setinheritsched() 37 iattr->flags &= ~ATTR_FLAG_NOTINHERITSCHED; in __pthread_attr_setinheritsched()
|
D | pthread_attr_setdetachstate.c | 25 struct pthread_attr *iattr; in __pthread_attr_setdetachstate() local 27 iattr = (struct pthread_attr *) attr; in __pthread_attr_setdetachstate() 36 iattr->flags |= ATTR_FLAG_DETACHSTATE; in __pthread_attr_setdetachstate() 38 iattr->flags &= ~ATTR_FLAG_DETACHSTATE; in __pthread_attr_setdetachstate()
|
D | pthread_attr_getsigmask.c | 24 struct pthread_attr *iattr = (struct pthread_attr *) attr; in __pthread_attr_getsigmask_np() local 26 if (iattr->extension == NULL || !iattr->extension->sigmask_set) in __pthread_attr_getsigmask_np() 33 *sigmask = iattr->extension->sigmask; in __pthread_attr_getsigmask_np()
|
D | pthread_attr_setschedparam.c | 27 struct pthread_attr *iattr = (struct pthread_attr *) attr; in __pthread_attr_setschedparam() local 30 iattr->schedpolicy); in __pthread_attr_setschedparam() 35 memcpy (&iattr->schedparam, param, sizeof (struct sched_param)); in __pthread_attr_setschedparam() 38 iattr->flags |= ATTR_FLAG_SCHED_SET; in __pthread_attr_setschedparam()
|
D | pthread_attr_setstackaddr.c | 25 struct pthread_attr *iattr; in __pthread_attr_setstackaddr() local 31 iattr = (struct pthread_attr *) attr; in __pthread_attr_setstackaddr() 33 iattr->stackaddr = stackaddr; in __pthread_attr_setstackaddr() 34 iattr->flags |= ATTR_FLAG_STACKADDR; in __pthread_attr_setstackaddr()
|
D | pthread_rwlockattr_init.c | 28 struct pthread_rwlockattr *iattr; in __pthread_rwlockattr_init() local 30 iattr = (struct pthread_rwlockattr *) attr; in __pthread_rwlockattr_init() 32 iattr->lockkind = PTHREAD_RWLOCK_DEFAULT_NP; in __pthread_rwlockattr_init() 33 iattr->pshared = PTHREAD_PROCESS_PRIVATE; in __pthread_rwlockattr_init()
|
D | pthread_mutexattr_setpshared.c | 26 struct pthread_mutexattr *iattr; in __pthread_mutexattr_setpshared() local 32 iattr = (struct pthread_mutexattr *) attr; in __pthread_mutexattr_setpshared() 35 iattr->mutexkind &= ~PTHREAD_MUTEXATTR_FLAG_PSHARED; in __pthread_mutexattr_setpshared() 37 iattr->mutexkind |= PTHREAD_MUTEXATTR_FLAG_PSHARED; in __pthread_mutexattr_setpshared()
|
D | pthread_mutexattr_settype.c | 25 struct pthread_mutexattr *iattr; in ___pthread_mutexattr_settype() local 35 iattr = (struct pthread_mutexattr *) attr; in ___pthread_mutexattr_settype() 37 iattr->mutexkind = (iattr->mutexkind & PTHREAD_MUTEXATTR_FLAG_BITS) | kind; in ___pthread_mutexattr_settype()
|
D | pthread_rwlock_init.c | 44 const struct pthread_rwlockattr *iattr; in ___pthread_rwlock_init() local 46 iattr = ((const struct pthread_rwlockattr *) attr) ?: &default_rwlockattr; in ___pthread_rwlock_init() 50 rwlock->__data.__flags = iattr->lockkind; in ___pthread_rwlock_init() 53 rwlock->__data.__shared = (iattr->pshared != PTHREAD_PROCESS_PRIVATE); in ___pthread_rwlock_init()
|
D | pthread_attr_getschedpolicy.c | 24 struct pthread_attr *iattr; in __pthread_attr_getschedpolicy() local 26 iattr = (struct pthread_attr *) attr; in __pthread_attr_getschedpolicy() 29 *policy = iattr->schedpolicy; in __pthread_attr_getschedpolicy()
|
D | pthread_attr_getinheritsched.c | 24 struct pthread_attr *iattr; in __pthread_attr_getinheritsched() local 26 iattr = (struct pthread_attr *) attr; in __pthread_attr_getinheritsched() 29 *inherit = (iattr->flags & ATTR_FLAG_NOTINHERITSCHED in __pthread_attr_getinheritsched()
|
D | pthread_attr_getschedparam.c | 26 struct pthread_attr *iattr; in __pthread_attr_getschedparam() local 28 iattr = (struct pthread_attr *) attr; in __pthread_attr_getschedparam() 31 memcpy (param, &iattr->schedparam, sizeof (struct sched_param)); in __pthread_attr_getschedparam()
|
D | pthread_attr_getdetachstate.c | 24 struct pthread_attr *iattr; in __pthread_attr_getdetachstate() local 26 iattr = (struct pthread_attr *) attr; in __pthread_attr_getdetachstate() 28 *detachstate = (iattr->flags & ATTR_FLAG_DETACHSTATE in __pthread_attr_getdetachstate()
|
D | pthread_attr_getscope.c | 24 struct pthread_attr *iattr; in __pthread_attr_getscope() local 26 iattr = (struct pthread_attr *) attr; in __pthread_attr_getscope() 29 *scope = (iattr->flags & ATTR_FLAG_SCOPEPROCESS in __pthread_attr_getscope()
|