3 ms·
https://docs.microsoft.com/it-it/cpp/c-runtime-library/errno-constants?view=vs-2019 https://docs.microsoft.com/it-it/cpp/c-runtime-library/errno... http://man7
by fabrixxm 7y ago
https://docs.microsoft.com/it-it/cpp/c-runtime-library/errno-constants?view=vs-2019 https://docs.microsoft.com/it-it/cpp/c-runtime-library/errno...
http://man7.org/linux/man-pages/man3/pthread_mutex_lock.3p.html http://man7.org/linux/man-pages/man3/pthread_mutex_lock.3p.h...
- DaleBerg 7y agoI see that Zero = Owner Dead. 1st time I have seen it. Thanks for the links.
- fabrixxm 7y agothat's not "zero = owner dead", but it returns 0 if call was succesfull or the value of EOWNERDEAD if something was wrong: If mutex is a robust mutex and the process containing the owning thread terminated while holding the mutex lock, a call to pthread_mutex_lock() shall return the error value [EOWNERDEAD]. as in "the current owner of the lock is dead without releasing it" (edit: fix formatting)
- DaleBerg 7y agoThanks for updating for me. I was just looking at "The mutex object referenced by mutex shall be locked by a call to pthread_mutex_lock() that returns zero or [EOWNERDEAD]." and saw that it returns zero or EOWNERDEAD and thought that zero = EOWNERDEAD. Thanks for all your comments. They were helpful and I learned new things by reading your posted links.