Re: [PATCH] erofs-utils: lib: introduce atomic operations

2024-02-28 Thread Gao Xiang
On 2024/2/28 21:22, Yifan Zhao wrote: On 2/28/24 16:21, Gao Xiang wrote: Add some helpers (relaxed semantics) in order to prepare for the upcoming multi-threaded support. For example, compressor may be initialized more than once in different worker threads, resulting in noisy warnings. Thi

Re: [PATCH] erofs-utils: lib: introduce atomic operations

2024-02-28 Thread Yifan Zhao
On 2/28/24 16:21, Gao Xiang wrote: Add some helpers (relaxed semantics) in order to prepare for the upcoming multi-threaded support. For example, compressor may be initialized more than once in different worker threads, resulting in noisy warnings. This patch makes sure that each message will

[PATCH] erofs-utils: lib: introduce atomic operations

2024-02-28 Thread Gao Xiang
Add some helpers (relaxed semantics) in order to prepare for the upcoming multi-threaded support. For example, compressor may be initialized more than once in different worker threads, resulting in noisy warnings. This patch makes sure that each message will be printed only once by adding `__warn