From: Wu Yongwei Date: Tue, 1 Nov 2022 14:19:02 +0000 (+0800) Subject: Add semicolons at the end of function prototypes X-Git-Tag: v0.14.0~13^2 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=0474164f90ea2af6ca30f1dcb88ccaf083004b52;p=userspace-rcu.git Add semicolons at the end of function prototypes This pleases the syntax highlighter for multi-line code. Also, other files already have semicolons. Signed-off-by: Wu Yongwei --- diff --git a/doc/uatomic-api.md b/doc/uatomic-api.md index 9dd0c1c..0962399 100644 --- a/doc/uatomic-api.md +++ b/doc/uatomic-api.md @@ -27,7 +27,7 @@ API --- ```c -void uatomic_set(type *addr, type v) +void uatomic_set(type *addr, type v); ``` Atomically write `v` into `addr`. By "atomically", we mean that no @@ -36,7 +36,7 @@ effects of `uatomic_set()`. ```c -type uatomic_read(type *addr) +type uatomic_read(type *addr); ``` Atomically read `v` from `addr`. By "atomically", we mean that @@ -45,7 +45,7 @@ uatomic update. ```c -type uatomic_cmpxchg(type *addr, type old, type new) +type uatomic_cmpxchg(type *addr, type old, type new); ``` An atomic read-modify-write operation that performs this @@ -56,7 +56,7 @@ memory barrier before and after the atomic operation. ```c -type uatomic_xchg(type *addr, type new) +type uatomic_xchg(type *addr, type new); ``` An atomic read-modify-write operation that performs this sequence @@ -67,8 +67,8 @@ operation. ```c -type uatomic_add_return(type *addr, type v) -type uatomic_sub_return(type *addr, type v) +type uatomic_add_return(type *addr, type v); +type uatomic_sub_return(type *addr, type v); ``` An atomic read-modify-write operation that performs this @@ -79,8 +79,8 @@ operation. ```c -void uatomic_and(type *addr, type mask) -void uatomic_or(type *addr, type mask) +void uatomic_and(type *addr, type mask); +void uatomic_or(type *addr, type mask); ``` Atomically write the result of bitwise "and"/"or" between the @@ -95,8 +95,8 @@ atomic instructions implicitly supply the needed memory barriers. ```c -void uatomic_add(type *addr, type v) -void uatomic_sub(type *addr, type v) +void uatomic_add(type *addr, type v); +void uatomic_sub(type *addr, type v); ``` Atomically increment/decrement the content of `addr` by `v`. @@ -110,8 +110,8 @@ instructions implicitly supply the needed memory barriers. ```c -void uatomic_inc(type *addr) -void uatomic_dec(type *addr) +void uatomic_inc(type *addr); +void uatomic_dec(type *addr); ``` Atomically increment/decrement the content of `addr` by 1.