Skip to content

test app doesn't increment atomically #1

@jond3k

Description

@jond3k

The counter doesn't seem to be incremented atomically. This leads to output like this immediately after every thread has been woken up:

b769fb30 : woke up 3 threads
b2e94b70 : incremented counter to 6
b4e98b70 : incremented counter to 6
b4e98b70 : incremented counter to 7
b769db70 : incremented counter to 6

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