[Lldb-commits] [PATCH] D33831: Add temp_failure_retry helper function
Pavel Labath via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Jun 2 08:00:01 PDT 2017
labath added inline comments.
Comment at: include/lldb/Host/Host.h:252
+ result = f(args...);
+ while (result == fail_value && errno == EINTR);
+ return result;
> Will this build on Windows for their native API? If so, will it be useful there?
It will build, although it will probably be a no-op. Some windows apis (i guess just the posix-compatibility ones) use errno, although I don't know if they can actually fail with EINTR. It's still useful in generic code, as some of those apis are used in shared code.
More information about the lldb-commits