[Lldb-commits] [PATCH] Implements a HostThread class.
jingham at apple.com
jingham at apple.com
Thu Aug 28 16:40:49 PDT 2014
Suspending threads in the inferior is very useful. There are some parts of the Host interface that will be used by the the Native* for that host, e.g. launching. So there might be things in the Host interface that you wouldn't naively think were necessary. IIUC however, HostThread operations refer to threads in the lldb process itself, and how you would suspend & resume your own threads and those of another process are likely to be quite different. So I don't think we need them for that reason.
And you probably never would want to suspend & resume your own threads, that would be a very confusing way to program...
Jim
> On Aug 28, 2014, at 3:49 PM, David Majnemer <david.majnemer at gmail.com> wrote:
>
> Suspend and Resume are a little questionable, why do we need them? They can make reasoning about threads way more challenging and can almost always be replaced by an explicit synchronization mechanism.
>
> http://reviews.llvm.org/D5110
>
>
>
> _______________________________________________
> lldb-commits mailing list
> lldb-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits
More information about the lldb-commits
mailing list