Merge "Fix pthread_barrierattr_getpshared prototype."
This commit is contained in:
commit
f8f2949744
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue