Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error code for pthread_mutex_lock failure #4712

Closed
mbhaskar98 opened this issue Sep 27, 2024 · 0 comments
Closed

Error code for pthread_mutex_lock failure #4712

mbhaskar98 opened this issue Sep 27, 2024 · 0 comments

Comments

@mbhaskar98
Copy link

mbhaskar98 commented Sep 27, 2024

If pthread_mutex_lock returns a non-zero value, System exception is raised.

inline void MutexImpl::lockImpl() { if (pthread_mutex_lock(&_mutex)) throw SystemException("cannot lock mutex"); }

Can this exception contain the error code as well? Or if there's some other method which should be used to get the error value?

@aleks-f aleks-f added this to 1.14 Oct 3, 2024
@aleks-f aleks-f moved this to In Progress in 1.14 Oct 3, 2024
@aleks-f aleks-f added this to the Release 1.14.0 milestone Oct 3, 2024
@aleks-f aleks-f self-assigned this Oct 3, 2024
aleks-f added a commit that referenced this issue Oct 14, 2024
* chore(JSON): add stringify unicode tests #4707

* enh(Mutex): Error code for pthread_mutex_lock failure #4712
@aleks-f aleks-f moved this from In Progress to Done in 1.14 Oct 15, 2024
@aleks-f aleks-f added the fixed label Oct 15, 2024
@matejk matejk closed this as completed Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

3 participants