Skip to content

[threads] check for unlocked mutex before destroying #56

Open
@stonier

Description

@stonier

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions