* @return 0 upon success, 1 otherwise
*/
extern int pthread_mutex_init(pthread_mutex_t *mutex,
- pthread_mutexattr_t *mutex_attr);
+ const pthread_mutexattr_t *mutex_attr);
/** @nqPosix
* Destroys a mutex.
* @return 0 for success, 1 otherwise.
*/
extern int pthread_cond_init(pthread_cond_t *cond,
- pthread_condattr_t *cond_attr);
+ const pthread_condattr_t *cond_attr);
/** @nqPosix
* Destroys a condition variable.
*/
int pthread_cond_timedwait_abs(pthread_cond_t *cond,
pthread_mutex_t *mutex,
- struct timespec *abstime);
+ const struct timespec *abstime);
/** @nqPosix
* Waits for condition variable cond to be signaled or broadcast; wait time is
*/
int pthread_cond_timedwait_rel(pthread_cond_t *cond,
pthread_mutex_t *mutex,
- struct timespec *reltime);
+ const struct timespec *reltime);
/**
* Defined for POSIX compatibility; pthread_cond_timedwait() is actually