• tyler@programming.dev
    link
    fedilink
    arrow-up
    84
    ·
    2 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
        64
        arrow-down
        1
        ·
        2 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.”