Skip to content

Error code for pthread_mutex_lock failure #4712

@mbhaskar98

Description

@mbhaskar98

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?

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions