Merge "Fix pthread_barrierattr_getpshared prototype."

This commit is contained in:
Treehugger Robot 2016-08-12 19:13:37 +00:00 committed by Gerrit Code Review
commit f8f2949744
2 changed files with 3 additions and 3 deletions

View file

@ -42,7 +42,7 @@ int pthread_barrierattr_destroy(pthread_barrierattr_t* attr) {
return 0;
}
int pthread_barrierattr_getpshared(pthread_barrierattr_t* attr, int* pshared) {
int pthread_barrierattr_getpshared(const pthread_barrierattr_t* attr, int* pshared) {
*pshared = (*attr & 1) ? PTHREAD_PROCESS_SHARED : PTHREAD_PROCESS_PRIVATE;
return 0;
}

View file

@ -232,8 +232,8 @@ int pthread_rwlock_wrlock(pthread_rwlock_t* _Nonnull);
int pthread_barrierattr_init(pthread_barrierattr_t* _Nonnull attr) __INTRODUCED_IN(24);
int pthread_barrierattr_destroy(pthread_barrierattr_t* _Nonnull attr) __INTRODUCED_IN(24);
int pthread_barrierattr_getpshared(pthread_barrierattr_t* _Nonnull attr, int* _Nonnull pshared)
__INTRODUCED_IN(24);
int pthread_barrierattr_getpshared(const pthread_barrierattr_t* _Nonnull attr,
int* _Nonnull pshared) __INTRODUCED_IN(24);
int pthread_barrierattr_setpshared(pthread_barrierattr_t* _Nonnull attr, int pshared)
__INTRODUCED_IN(24);