[Lldb-commits] [PATCH] Fix up the HostThread interface
zturner at google.com
Fri Sep 19 13:51:53 PDT 2014
* Removes GetState / SetState
* Adds a method IsJoinable()
There is no need for a distinction between IsHandleValid and IsThreadRunning, because even if a thread has run to completion, you are still required to Join on it. So a better function simply checks whether a thread is joinable. This is equivalent to checking if the handle is valid, because the Join() operation can reset the handle to an invalid handle after it has been performed.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 23440 bytes
Desc: not available
More information about the lldb-commits