Skip to content

Race Condition when reading and writing memory? #7

@olispeedy

Description

@olispeedy

How you prevent a possible race condition between the processes that share memory?
It will be very likely that Assetto Corsa will overwrite the values in memory at a high rate that you are currently reading. When some values cannot be written with an atomar operation you end up having values where some bytes contain old data while others contain new.
Or does this memory mapped variant guarantee that you can read all data consistently?

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