Skip to content
Search

Pthread mutex init

lastmod 2020-03-18created 2020-03-182 edits

Synopsis

pthread_mutex_t mtx;
pthread_mutexattr_t att;
pthread_mutexattr_init(&att);
int ret = pthread_mutex_init(&mtx, &att);

Return values

EINVAL
Check whether the second argument, pthread_mutexattr_t, has been initialized.

See also

author Zer0 sitemap