In man page for interface like pthread_mutex_init
,
int pthread_mutex_init(pthread_mutex_t *restrict mutex,
const pthread_mutexattr_t *restrict attr);
It says "If attr is NULL, the default mutex attributes are used...", and the default mutex attributes
are mentioned many times, and it is also mentioned in the book The Linux Programming Interface
, but it is never explained in detail anywhere, I googled and no result.
There is one post what is the "attribute" of a pthread mutex?, and it mentioned "Usually, the default is a sensible set of attributes but it may vary between platforms", but it is not what I want, I want more details.
So, what is exactly the default mutex attributes
?