Skip to content

qsort5.c pthread_create (etc) return values not checked #1

@andrew-appel

Description

@andrew-appel

In the qsort5.c benchmark, the return values from pthread_create, pthread_mutex_lock, etc. are not checked; so if those functions experience errors, the program fails.

Also, because pthread_join is after the decrement of active, the number of threads could be greater than THREADS (although, technically, the thread doing pthread_join is blocked, not active...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions