Jim Ingham 4fc6cb9c76 Rework how the API mutex is acquired when filling out an ExecutionContext from an ExecutionContextRef,
particularly in the SBThread & SBFrame interfaces.  Instead of filling the whole context & then getting
the API mutex, we now get only the target, acquire the API mutex from it, then fill out the rest of the
context.  This removes a race condition where you get a ThreadSP, then wait on the API mutex while another
command Destroy's the Thread you've just gotten.
Also fixed the ExecutionContextRef::Get*SP calls so they don't return invalid objects.
Also fixed the ExecutionContext::Has*Scope calls so they don't claim to have a scope if the object representing
that scope has been destroyed.
Also fixed a think-o in Thread::IsValid which was causing it to return the opposite of the desired value.

<rdar://problem/11995490>

llvm-svn: 162401
2012-08-22 21:34:33 +00:00
..
2012-03-16 20:46:10 +00:00
2011-11-13 06:57:31 +00:00
2011-11-13 06:57:31 +00:00
2012-05-10 02:52:23 +00:00
2012-05-08 20:05:08 +00:00
2012-03-26 23:03:23 +00:00
2012-07-31 23:39:10 +00:00
2012-02-15 02:34:21 +00:00
2012-02-15 02:34:21 +00:00