[cfe-dev] std::async default launch policy

John DiMatteo jdimatteo at gmail.com
Tue Feb 11 05:08:10 PST 2014


Hello,

With std::async, if both the std::launch::async and std::launch::deferred
flags are set in policy, what exactly does trunk libc++ do?  Does it for
example check the current load of the system and the number of CPUs to
decide at runtime whether to run in a separate thread or whether to lazily
defer?

If you could point out the relevant section of code under
https://llvm.org/svn/llvm-project/libcxx/trunk/ I'd appreciate it.

Thanks for your time,
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140211/27da9571/attachment.html>


More information about the cfe-dev mailing list