<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi all,
<div class=""><br class="">
</div>
<div class="">In a pass I’m using <i class="">raw_fd_ostream</i> to write a string to a file. Does <i class="">raw_fd_ostream</i> guarantee </div>
<div class="">the write is atomic when I do parallel compilation (currently I’m using -j8)? I have some
<i class="">errs</i>() to </div>
<div class="">print information for debugging purposes and I saw that the printed information gets messed up sometime. </div>
<div class="">If I’m writing a string with the format of “A:B:C”, is it possible that I got “A1:B2:C1” and “A2:B1:C2” </div>
<div class="">instead of the correct one “A1:B1:C1” and “A2:B2:C2”? And if this is possible, how can I do atomic write to a file?</div>
<div class=""><br class="">
</div>
<div class="">Thanks,</div>
<div class="">- Jie</div>
</body>
</html>