• tyler@programming.dev
    link
    fedilink
    arrow-up
    86
    ·
    3 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
        65
        arrow-down
        1
        ·
        3 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.”