3 ms·
On linux, pthread_mutex_init always returns 0. But yes, according to POSIX, the function might fail (the common response is generally to assert() in this case)
by xroche 12y ago
On linux, pthread_mutex_init always returns 0. But yes, according to POSIX, the function might fail (the common response is generally to assert() in this case)
- halayli 12y agoOn linux, pthread_mutex_init can fail and return ENOMEM.