/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_getpshared/ |
1-2.c | 14 * 2. Set 'pshared' of the object to PTHREAD_PROCESS_SHARED. 37 int pshared; local 45 /* Set 'pshared' to PTHREAD_PROCESS_SHARED. */ 53 /* Get 'pshared'. */ 54 if (pthread_mutexattr_getpshared(&mta, &pshared) != 0) { 60 if (pshared != PTHREAD_PROCESS_SHARED) { 61 printf("Test FAILED: Incorrect pshared value: %d\n", pshared);
|
1-3.c | 14 * 2. Set 'pshared' of the object to PTHREAD_PROCESS_PRIVATE. 37 int pshared; local 45 /* Set 'pshared' to PTHREAD_PROCESS_PRIVATE. */ 53 /* Get 'pshared'. It should be PTHREAD_PROCESS_PRIVATE. */ 54 if (pthread_mutexattr_getpshared(&mta, &pshared) != 0) { 60 if (pshared != PTHREAD_PROCESS_PRIVATE) { 61 printf("Test FAILED: Incorrect pshared value: %d\n", pshared);
|
1-1.c | 34 int pshared; local 42 /* The default 'pshared' attribute should be PTHREAD_PROCESS_PRIVATE */ 43 if (pthread_mutexattr_getpshared(&mta, &pshared) != 0) { 49 if (pshared != PTHREAD_PROCESS_PRIVATE) { 50 printf("Test FAILED: Incorrect default pshared value: %d\n", 51 pshared);
|
assertions.xml | 6 int *restrict pshared); 12 into 'pshared'.
|
3-1.c | 38 int pshared; local 43 /* The default 'pshared' attribute should be PTHREAD_PROCESS_PRIVATE */ 44 ret = pthread_mutexattr_getpshared(&mta, &pshared);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_setpshared/ |
1-2.c | 10 * The default value of the 'pshared' attribute is PTHREAD_PROCESS_PRIVATE. 34 int pshared; local 42 /* The default 'pshared' attribute should be PTHREAD_PROCESS_PRIVATE */ 43 if (pthread_mutexattr_getpshared(&mta, &pshared) != 0) { 50 if (pshared != PTHREAD_PROCESS_PRIVATE) { 51 printf("Test FAILED: Incorrect default pshared value: %d\n", 52 pshared);
|
/external/compiler-rt/test/sanitizer_common/TestCases/ |
pthread_mutexattr_get.cc | 12 int pshared; local 13 res = pthread_mutexattr_getpshared(&ma, &pshared); 15 assert(pshared == 1);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_setpshared/ |
1-1.c | 32 int pshared = PTHREAD_PROCESS_SHARED; local 42 /* Set pshared to PTHREAD_PROCESS_SHARED */ 43 rc = pthread_barrierattr_setpshared(&ba, pshared); 50 if (pthread_barrierattr_getpshared(&ba, &pshared) != 0) { 55 if (pshared != PTHREAD_PROCESS_SHARED) { 57 pshared); 61 /* Set pshared to PTHREAD_PROCESS_SHARED */ 76 pshared);
|
2-1.c | 35 int pshared = PTHREAD_PROCESS_PRIVATE + 1; local 38 /* Set pshared to an invalid value */ 39 if (pshared == PTHREAD_PROCESS_SHARED) { 40 pshared += 1; 50 rc = pthread_barrierattr_setpshared(&ba, pshared);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_getpshared/ |
1-1.c | 14 * 2. Set 'pshared' of the object to PTHREAD_PROCESS_PRIVATE. 38 int ret, i, pshared; local 47 /* Set 'pshared' to PTHREAD_PROCESS_PRIVATE. */ 58 /* Get 'pshared'. It should be PTHREAD_PROCESS_PRIVATE. */ 59 if (pthread_condattr_getpshared(&attr[i], &pshared) != 0) { 65 if (pshared != PTHREAD_PROCESS_PRIVATE) { 66 printf("Test FAILED: Incorrect pshared value: %d\n", 67 pshared);
|
1-2.c | 14 * 2. Set 'pshared' of the object to PTHREAD_PROCESS_SHARED. 38 int ret, i, pshared; local 47 /* Set 'pshared' to PTHREAD_PROCESS_SHARED. */ 58 /* Get 'pshared'. It should be PTHREAD_PROCESS_SHARED. */ 59 if (pthread_condattr_getpshared(&attr[i], &pshared) != 0) { 65 if (pshared != PTHREAD_PROCESS_SHARED) { 66 printf("Test FAILED: Incorrect pshared value: %d\n", 67 pshared);
|
2-1.c | 34 int pshared; local 42 /* The default 'pshared' attribute should be PTHREAD_PROCESS_PRIVATE */ 43 if (pthread_condattr_getpshared(&attr, &pshared) != 0) { 49 if (pshared != PTHREAD_PROCESS_PRIVATE) { 50 printf("Test FAILED: Incorrect default pshared value: %d\n", 51 pshared);
|
assertions.xml | 5 int *restrict pshared); 16 value of the process-shared attribute of attr into the object referenced by the pshared
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_getpshared/ |
1-1.c | 25 int pshared; local 39 /* The default 'pshared' attribute should be PTHREAD_PROCESS_PRIVATE */ 40 rc = pthread_rwlockattr_getpshared(&rwla, &pshared); 48 if (pshared != PTHREAD_PROCESS_PRIVATE) { 49 printf("Test FAILED: Incorrect default pshared value: %d\n", 50 pshared);
|
4-1.c | 26 int pshared; local 39 /* The default 'pshared' attribute should be PTHREAD_PROCESS_PRIVATE */ 40 if (pthread_rwlockattr_getpshared(&rwla, &pshared) != 0) { 45 if (pshared != PTHREAD_PROCESS_PRIVATE) { 46 printf("Test FAILED: Incorrect default pshared value: %d\n", 47 pshared);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_setpshared/ |
1-1.c | 21 * 2. Set 'pshared' of the object to PTHREAD_PROCESS_PRIVATE using pthread_condattr_setpshared 45 int ret, i, pshared; local 54 /* Set 'pshared' to PTHREAD_PROCESS_PRIVATE. */ 60 ("Test FAILED: Could not set pshared to PTHREAD_PROCESS_PRIVATE, error: %d\n", 65 /* Get 'pshared'. It should be PTHREAD_PROCESS_PRIVATE. */ 66 if (pthread_condattr_getpshared(&attr[i], &pshared) != 0) { 69 pshared); 73 if (pshared != PTHREAD_PROCESS_PRIVATE) { 74 printf("Test FAILED: Incorrect pshared value: %d\n", 75 pshared); [all...] |
1-2.c | 21 * 2. Set 'pshared' of the object to PTHREAD_PROCESS_SHARED using pthread_condattr_setpshared 45 int ret, i, pshared; local 54 /* Set 'pshared' to PTHREAD_PROCESS_SHARED. */ 60 ("Test FAILED: Could not set pshared to PTHREAD_PROCESS_SHARED, error: %d\n", 65 /* Get 'pshared'. It should be PTHREAD_PROCESS_SHARED. */ 66 if (pthread_condattr_getpshared(&attr[i], &pshared) != 0) { 69 pshared); 73 if (pshared != PTHREAD_PROCESS_SHARED) { 74 printf("Test FAILED: Incorrect pshared value: %d\n", 75 pshared); [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_setpshared/ |
1-1.c | 27 int pshared; local 49 if (pthread_rwlockattr_getpshared(&rwla, &pshared) != 0) { 54 if (pshared != PTHREAD_PROCESS_PRIVATE) { 57 pshared); 69 if (pthread_rwlockattr_getpshared(&rwla, &pshared) != 0) { 74 if (pshared != PTHREAD_PROCESS_SHARED) { 77 pshared);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_getpshared/ |
1-1.c | 28 int pshared; local 37 /* Get pshared */ 38 if (pthread_barrierattr_getpshared(&ba, &pshared) != 0) { 43 if (pshared != PTHREAD_PROCESS_PRIVATE) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_init/ |
1-1.c | 29 int pshared; local 39 /* Get the pshared value of the initialized barrierattr object */ 40 if (pthread_barrierattr_getpshared(&ba, &pshared) != 0) { 46 if (pshared != PTHREAD_PROCESS_PRIVATE) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_init/ |
1-1.c | 7 * Test pthread_spin_init(pthread_spinlock_t * lock, int pshared) 35 int pshared; local 38 pshared = PTHREAD_PROCESS_PRIVATE; 40 pshared = -1; 43 rc = pthread_spin_init(&spinlock, pshared);
|
4-1.c | 7 * Test pthread_spin_init(pthread_spinlock_t * lock, int pshared) 35 static int pshared; variable 42 rc = pthread_spin_init(&spinlock, pshared); 59 pshared = PTHREAD_PROCESS_PRIVATE; 61 pshared = -1; 66 rc = pthread_spin_init(&spinlock, pshared);
|
/bionic/libc/bionic/ |
pthread_barrier.cpp | 45 int pthread_barrierattr_getpshared(const pthread_barrierattr_t* attr, int* pshared) { 46 *pshared = (*attr & 1) ? PTHREAD_PROCESS_SHARED : PTHREAD_PROCESS_PRIVATE; 50 int pthread_barrierattr_setpshared(pthread_barrierattr_t* attr, int pshared) { 51 if (pshared == PTHREAD_PROCESS_SHARED) { 76 bool pshared; member in struct:pthread_barrier_internal_t 100 barrier->pshared = false; 102 barrier->pshared = true; 121 __futex_wait_ex(&barrier->state, barrier->pshared, RELEASE, false, nullptr); 149 __futex_wake_ex(&barrier->state, barrier->pshared, prev_wait_count); 155 __futex_wait_ex(&barrier->state, barrier->pshared, WAIT, false, nullptr) [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_init/ |
1-1.c | 29 int pshared; local 42 if (pthread_condattr_getpshared(&condattr, &pshared) != 0) { 48 if (pshared == PTHREAD_PROCESS_PRIVATE) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_init/ |
1-1.c | 29 int pshared; local 42 if (pthread_mutexattr_getpshared(&mta, &pshared) != 0) { 48 if (pshared == PTHREAD_PROCESS_PRIVATE) {
|