Skip to content

std::atomic has race condition with g++/gcc on a raspberry pi 3B+ #2504

@gpmfuchs

Description

@gpmfuchs

std::atomic is not working with g++/gcc in raspberry pi 3B+ running raspbian.

it seems to behave like a normal variable with race conditions.

atomics are working with clang++/llvm on the same system (clang++ pierror.cpp -std=c++11 -l pthread -o piok).
atomics are working with raspberry pi 2B running archarm
atomics are working on x64

atomic.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions