[Lldb-commits] [PATCH] Add Host::GetMaxThreadNameLength(), modify private state thread name

Ed Maste emaste at freebsd.org
Sat Jul 12 09:43:55 PDT 2014


On 11 July 2014 11:56, Todd Fiala <todd.fiala at gmail.com> wrote:
> My take was it depends on host details.  For example, I didn't track down
> the Windows way of getting this data, but I wouldn't be surprised if it
> turned into a method call to the system (which could be cached, but that's
> an impl detail that a method call would allow us to hide).
>
> I thought it made it more flexible on unknown details for current/future
> platforms to have it be a function call.

Fair enough, and it's not a big deal - I just assume it will in
general be a (possibly empirically determined) constant.

I did a little digging and couldn't find a limit for Windows.  I did
discover the convoluted method used to set the thread name though:
http://msdn.microsoft.com/en-us/library/xcb2z8hs.aspx



More information about the lldb-commits mailing list