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

Assert that pthread mutex initialization succeeded #77761

Merged
merged 1 commit into from
Oct 20, 2020

Commits on Oct 20, 2020

  1. Check that pthread mutex initialization succeeded

    If pthread mutex initialization fails, the failure will go unnoticed unless
    debug assertions are enabled. Any subsequent use of mutex will also silently
    fail, since return values from lock & unlock operations are similarly checked
    only through debug assertions.
    
    In some implementations the mutex initialization requires a memory
    allocation and so it does fail in practice.
    
    Check that initialization succeeds to ensure that mutex guarantees
    mutual exclusion.
    tmiasko committed Oct 20, 2020
    Configuration menu
    Copy the full SHA
    21c29b1 View commit details
    Browse the repository at this point in the history