On Fri, 28 Feb 2020 15:49:05 +0100 Corinna Vinschen wrote: > Also, on second thought, given wpbuf is global inside this file, doesn't > this require guarding against multi-threaded access?
wpbuf_put() is used in write(), and almost whole of write() code is guarded by output_mutex. So, I think it is already thread-safe. -- Takashi Yano <takashi.y...@nifty.ne.jp>