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 <[email protected]> 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
> [email protected]
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits

_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits

Reply via email to