[PATCH] D20903: Make system_error::message() thread safe. Fixes PR25598.
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 13 19:44:12 PDT 2016
EricWF updated this revision to Diff 60642.
EricWF added a comment.
- Use a local buffer instead of a `static` `thread_local` one.
- Save and restore errno in the POSIX implementation.
http://reviews.llvm.org/D20903
Files:
src/system_error.cpp
test/std/diagnostics/syserr/syserr.errcat/syserr.errcat.objects/generic_category.pass.cpp
test/std/diagnostics/syserr/syserr.errcat/syserr.errcat.objects/system_category.pass.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20903.60642.patch
Type: text/x-patch
Size: 3591 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160614/17e0798e/attachment.bin>
More information about the cfe-commits
mailing list