libc: Added prototypes for new POSIX APIs
Added function prototypes to newlib/libc/include/pthread.h for the following Issue 8 Standard APIs: pthread_cond_clockwait() pthread_mutex_clocklock() pthread_rwlock_clockrdlock() pthread_rwlock_clockwrlock()
This commit is contained in:
parent
0cb40f415b
commit
4f81149937
|
@ -87,6 +87,12 @@ int pthread_mutex_timedlock (pthread_mutex_t *__mutex,
|
||||||
|
|
||||||
#endif /* _POSIX_TIMEOUTS */
|
#endif /* _POSIX_TIMEOUTS */
|
||||||
|
|
||||||
|
#if __GNU_VISIBLE
|
||||||
|
/* The Issue 8 standard adds pthread_mutex_clocklock() */
|
||||||
|
int pthread_mutex_clocklock(pthread_mutex_t *__restrict, clockid_t,
|
||||||
|
const struct timespec *__restrict);
|
||||||
|
#endif /* __GNU_VISIBLE */
|
||||||
|
|
||||||
/* Condition Variable Initialization Attributes, P1003.1c/Draft 10, p. 96 */
|
/* Condition Variable Initialization Attributes, P1003.1c/Draft 10, p. 96 */
|
||||||
|
|
||||||
int pthread_condattr_init (pthread_condattr_t *__attr);
|
int pthread_condattr_init (pthread_condattr_t *__attr);
|
||||||
|
@ -126,6 +132,13 @@ int pthread_cond_wait (pthread_cond_t *__cond, pthread_mutex_t *__mutex);
|
||||||
int pthread_cond_timedwait (pthread_cond_t *__cond,
|
int pthread_cond_timedwait (pthread_cond_t *__cond,
|
||||||
pthread_mutex_t *__mutex,
|
pthread_mutex_t *__mutex,
|
||||||
const struct timespec *__abstime);
|
const struct timespec *__abstime);
|
||||||
|
|
||||||
|
#if __GNU_VISIBLE
|
||||||
|
/* The Issue 8 standard adds pthread_cond_clockwait() */
|
||||||
|
int pthread_cond_clockwait(pthread_cond_t *__restrict,
|
||||||
|
pthread_mutex_t *__restrict, clockid_t,
|
||||||
|
const struct timespec *__restrict);
|
||||||
|
#endif /* __GNU_VISIBLE */
|
||||||
|
|
||||||
#if defined(_POSIX_THREAD_PRIORITY_SCHEDULING)
|
#if defined(_POSIX_THREAD_PRIORITY_SCHEDULING)
|
||||||
|
|
||||||
|
@ -423,6 +436,15 @@ int pthread_rwlock_trywrlock (pthread_rwlock_t *__rwlock);
|
||||||
int pthread_rwlock_timedwrlock (pthread_rwlock_t *__rwlock,
|
int pthread_rwlock_timedwrlock (pthread_rwlock_t *__rwlock,
|
||||||
const struct timespec *__abstime);
|
const struct timespec *__abstime);
|
||||||
|
|
||||||
|
#if __GNU_VISIBLE
|
||||||
|
/* The Issue 8 standard adds pthread_rwlock_clockrdlock()
|
||||||
|
* and pthread_rwlock_clockwrlock()*/
|
||||||
|
int pthread_rwlock_clockrdlock(pthread_rwlock_t *__restrict, clockid_t,
|
||||||
|
const struct timespec *__restrict);
|
||||||
|
int pthread_rwlock_clockwrlock(pthread_rwlock_t *__restrict, clockid_t,
|
||||||
|
const struct timespec *__restrict);
|
||||||
|
#endif /* __GNU_VISIBLE */
|
||||||
|
|
||||||
#endif /* defined(_POSIX_READER_WRITER_LOCKS) */
|
#endif /* defined(_POSIX_READER_WRITER_LOCKS) */
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue