Skip to content

formal data race on the interrupt flag in OpenMP builds #108

Description

@LouieSlocombe

formal data race on the interrupt flag in OpenMP builds. On POSIX the flags are volatile sig_atomic_t, written by the SIGINT handler and read by every worker thread. That is benign on real hardware but undefined under the C++ memory model, and ThreadSanitizer would flag it. A lock-free std::atomic is async-signal-safe and would also remove the Windows/POSIX split. See globalPrimitives.h:76.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions