osdep: drop atomic fallback

even msvc (which mpv apparently doesn't support) supports C11 atomics
now. no need to carry around fallback with subtle semantic differences.
This commit is contained in:
NRK
2023-10-18 20:32:16 +06:00
committed by sfan5
parent 3fb4eb2ba4
commit 2fa695c3f9
5 changed files with 4 additions and 94 deletions

View File

@@ -434,8 +434,7 @@ See generally available literature. In mpv, we use pthread for this.
Always keep locking clean. Don't skip locking just because it will work "in
practice". (See undefined behavior section.) If your use case is simple, you may
use C11 atomics (osdep/atomic.h for partial C99 support), but most likely you
will only hurt yourself and others.
use C11 atomics, but most likely you will only hurt yourself and others.
Always make clear which fields in a struct are protected by which lock. If a
field is immutable, or simply not thread-safe (e.g. state for a single worker