diff options
author | Russ Cox <rsc@swtch.com> | 2020-01-14 18:03:05 -0500 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2020-01-14 18:04:00 -0500 |
commit | 9505cd15a64933bf58ec50548339cf98b1854646 (patch) | |
tree | e3f519f753b124a27780470cf483f9f4a550a9d9 /src/lib9/fmt/fmtlock.c | |
parent | d28913a9e6609fef96f5baf6e9f4d5055ede744c (diff) | |
download | plan9port-9505cd15a64933bf58ec50548339cf98b1854646.tar.gz plan9port-9505cd15a64933bf58ec50548339cf98b1854646.tar.bz2 plan9port-9505cd15a64933bf58ec50548339cf98b1854646.zip |
lib9: make formatting lock-free again
First use of <stdatomic.h>.
We will see if any supported systems don't have it yet.
(C11 was so last decade.)
Fixes #338.
Diffstat (limited to 'src/lib9/fmt/fmtlock.c')
-rw-r--r-- | src/lib9/fmt/fmtlock.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/lib9/fmt/fmtlock.c b/src/lib9/fmt/fmtlock.c index eb9cd845..cabe05f4 100644 --- a/src/lib9/fmt/fmtlock.c +++ b/src/lib9/fmt/fmtlock.c @@ -5,21 +5,11 @@ #include "fmtdef.h" void -__fmtrlock(void) +__fmtlock(void) { } void -__fmtrunlock(void) -{ -} - -void -__fmtwlock(void) -{ -} - -void -__fmtwunlock(void) +__fmtunlock(void) { } |