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

[threads] check for unlocked mutex before destroying #56

Open
stonier opened this issue Jan 16, 2017 · 0 comments
Open

[threads] check for unlocked mutex before destroying #56

stonier opened this issue Jan 16, 2017 · 0 comments
Milestone

Comments

@stonier
Copy link
Owner

stonier commented Jan 16, 2017

From the man page for pthread_mutex_destroy...

It shall be safe to destroy an initialized mutex that is unlocked. Attempting to destroy a locked mutex results in undefined behavior.

The ecl threads Mutex class just destroys without checking inside it's destructor...

@stonier stonier added this to the Indigo-Kinetic milestone Jan 16, 2017
@stonier stonier modified the milestones: Indigo-Kinetic, ToDo Jun 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant