• tyler@programming.dev
    link
    fedilink
    arrow-up
    88
    ·
    7 days ago

    It’s not. It’s literally code in an unsafe block. The OP is either trolling or actually ignorant.

      • xylogx@lemmy.world
        link
        fedilink
        English
        arrow-up
        67
        arrow-down
        1
        ·
        7 days ago

        Not only unironic but explained in the doc you referenced:

        However Rust does not prevent general race conditions.

        This is mathematically impossible in situations where you do not control the scheduler, which is true for the normal OS environment.”