https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110096

--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Peter Dimov from comment #9)
> I don't think I want WFE here, based on what I read about it. Putting the
> core to sleep seems like something to do in an embedded system where I have
> full control of what cores do, not something to do on the application level,
> in a portable C++ library.

No, WFE can be used in userspace just fine and in fact it will be interrupted
every once in a while. yield only sleeps for a few cycles and then wakes up,
while wfe will sleep until an event happens (also WFE is very hypervisor
friendly too).

Reply via email to