/freebsd-10.2-release/lib/libkse/thread/ |
H A D | thr_condattr_pshared.c | 33 int _pthread_condattr_getpshared(const pthread_condattr_t *attr, int *pshared); 34 int _pthread_condattr_setpshared(pthread_condattr_t *attr, int pshared); 41 int *pshared) 46 pshared = PTHREAD_PROCESS_PRIVATE; 51 _pthread_condattr_setpshared(pthread_condattr_t *attr, int pshared) argument 56 if (pshared != PTHREAD_PROCESS_PRIVATE) 40 _pthread_condattr_getpshared(const pthread_condattr_t *attr, int *pshared) argument
|
H A D | thr_mattr_pshared.c | 36 int *pshared); 37 int _pthread_mutexattr_setpshared(pthread_mutexattr_t *attr, int pshared); 45 int *pshared) 50 pshared = PTHREAD_PROCESS_PRIVATE; 55 _pthread_mutexattr_setpshared(pthread_mutexattr_t *attr, int pshared) argument 60 if (pshared != PTHREAD_PROCESS_PRIVATE) 44 _pthread_mutexattr_getpshared(const pthread_mutexattr_t *attr, int *pshared) argument
|
H A D | thr_barrierattr.c | 58 int *pshared) 64 *pshared = (*attr)->pshared; 78 (*attr)->pshared = PTHREAD_PROCESS_PRIVATE; 83 _pthread_barrierattr_setpshared(pthread_barrierattr_t *attr, int pshared) argument 90 if (pshared != PTHREAD_PROCESS_PRIVATE) 93 (*attr)->pshared = pshared; 57 _pthread_barrierattr_getpshared(const pthread_barrierattr_t *attr, int *pshared) argument
|
H A D | thr_rwlockattr.c | 61 int *pshared) 63 *pshared = (*rwlockattr)->pshared; 82 prwlockattr->pshared = PTHREAD_PROCESS_PRIVATE; 89 _pthread_rwlockattr_setpshared(pthread_rwlockattr_t *rwlockattr, int pshared) argument 92 if (pshared != PTHREAD_PROCESS_PRIVATE) 95 (*rwlockattr)->pshared = pshared; 60 _pthread_rwlockattr_getpshared(const pthread_rwlockattr_t *rwlockattr, int *pshared) argument
|
H A D | thr_sem.c | 118 _sem_init(sem_t *sem, int pshared, unsigned int value) argument 123 if ((pshared != 0) && (ksem_init(&semid, value) != 0)) 126 (*sem) = sem_alloc(value, semid, pshared); 128 if (pshared != 0)
|
H A D | thr_pspinlock.c | 49 _pthread_spin_init(pthread_spinlock_t *lock, int pshared) argument 54 if (lock == NULL || pshared != PTHREAD_PROCESS_PRIVATE)
|
H A D | thr_private.h | 393 int pshared; member in struct:pthread_barrierattr 531 int pshared; member in struct:pthread_rwlockattr
|
/freebsd-10.2-release/lib/libthr/thread/ |
H A D | thr_barrierattr.c | 59 int *pshared) 65 *pshared = (*attr)->pshared; 79 (*attr)->pshared = PTHREAD_PROCESS_PRIVATE; 84 _pthread_barrierattr_setpshared(pthread_barrierattr_t *attr, int pshared) argument 91 if (pshared != PTHREAD_PROCESS_PRIVATE) 94 (*attr)->pshared = pshared; 58 _pthread_barrierattr_getpshared(const pthread_barrierattr_t *attr, int *pshared) argument
|
H A D | thr_rwlockattr.c | 62 int *pshared) 64 *pshared = (*rwlockattr)->pshared; 83 prwlockattr->pshared = PTHREAD_PROCESS_PRIVATE; 90 _pthread_rwlockattr_setpshared(pthread_rwlockattr_t *rwlockattr, int pshared) argument 93 if (pshared != PTHREAD_PROCESS_PRIVATE) 96 (*rwlockattr)->pshared = pshared; 61 _pthread_rwlockattr_getpshared(const pthread_rwlockattr_t *rwlockattr, int *pshared) argument
|
H A D | thr_condattr.c | 106 _pthread_condattr_getpshared(const pthread_condattr_t *attr, int *pshared) argument 111 *pshared = PTHREAD_PROCESS_PRIVATE; 116 _pthread_condattr_setpshared(pthread_condattr_t *attr, int pshared) argument 121 if (pshared != PTHREAD_PROCESS_PRIVATE)
|
H A D | thr_sem.c | 56 extern int _libc_sem_init_compat(sem_t *sem, int pshared, unsigned int value); 65 int _sem_init_compat(sem_t *sem, int pshared, unsigned int value); 75 _sem_init_compat(sem_t *sem, int pshared, unsigned int value) argument 77 return _libc_sem_init_compat(sem, pshared, value);
|
H A D | thr_mutexattr.c | 174 int *pshared) 180 *pshared = PTHREAD_PROCESS_PRIVATE; 185 _pthread_mutexattr_setpshared(pthread_mutexattr_t *attr, int pshared) argument 192 if (pshared != PTHREAD_PROCESS_PRIVATE) 173 _pthread_mutexattr_getpshared(const pthread_mutexattr_t *attr, int *pshared) argument
|
H A D | thr_pspinlock.c | 46 _pthread_spin_init(pthread_spinlock_t *lock, int pshared) argument 51 if (lock == NULL || pshared != PTHREAD_PROCESS_PRIVATE)
|
H A D | thr_cond.c | 361 int pshared; local 369 pshared = CV_PSHARED(cvp); local 373 if (pshared || cvp->__has_user_waiters == 0) 441 int pshared; local 452 pshared = CV_PSHARED(cvp); local 456 if (pshared || cvp->__has_user_waiters == 0)
|
H A D | thr_private.h | 193 int pshared; member in struct:pthread_barrierattr 311 int pshared; member in struct:pthread_rwlockattr
|
/freebsd-10.2-release/lib/libc/gen/ |
H A D | sem.c | 38 * semaphore regardless of the pshared attribute. This is necessary 45 * provide a faster userland implementation for non-pshared 49 * real pshared semaphores. The sem_t is an allocated object 168 _libc_sem_init_compat(sem_t *sem, int pshared, unsigned int value) argument 179 if ((pshared != 0) && ksem_init(&semid, value) != 0) 182 *sem = sem_alloc(value, semid, pshared); 184 if (pshared != 0)
|
H A D | sem_new.c | 123 _sem_init(sem_t *sem, int pshared, unsigned int value) argument 135 sem->_kern._flags = pshared ? USYNC_PROCESS_SHARED : 0;
|