[all-commits] [llvm/llvm-project] bf02c8: [libc] Use file lock to join newline on RPC puts c...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Mon Nov 27 06:41:28 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bf02c84cb8e7f60dfc12f822cd2bb71890b03101
https://github.com/llvm/llvm-project/commit/bf02c84cb8e7f60dfc12f822cd2bb71890b03101
Author: Joseph Huber <huberjn at outlook.com>
Date: 2023-11-27 (Mon, 27 Nov 2023)
Changed paths:
M libc/utils/gpu/server/rpc_server.cpp
Log Message:
-----------
[libc] Use file lock to join newline on RPC puts call (#73373)
Summary:
The puts call appends a newline. With multiple threads, this can be done
out of order such that another thread puts something before we finish
appending the newline. Add a flockfile and funlockfile to ensure that
the whole string is printed before another string can appear.
More information about the All-commits
mailing list