[Lldb-commits] [PATCH] D32600: Resurrect pselect MainLoop implementation

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Apr 27 10:59:05 PDT 2017


labath created this revision.
Herald added a subscriber: srhines.

It turns out that even though ppoll is available on all the android
devices we support, it does not seem to be working properly on all of
them -- MainLoop just does a busy loop with ppoll returning EINTR and
not making any progress.

This brings back the pselect implementation and makes it available on
android. I could not do any cmake checks for this as the ppoll symbol is
actually avaiable -- it just does not work.

I haven't tested (or even built) this yet on platforms other than linux,
but I wanted to share this early to get feedback on the way I abstract
the pselect/ppoll/kevent implementations.


https://reviews.llvm.org/D32600

Files:
  include/lldb/Host/MainLoop.h
  source/Host/common/MainLoop.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32600.96946.patch
Type: text/x-patch
Size: 8747 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20170427/38fa4dcc/attachment.bin>


More information about the lldb-commits mailing list