Re: parts of a thread stack mapping, pthread_main_np()
Jason Thorpe <[email protected]> Sat, 25 Apr 2026 06:15:06 -0700
| Newsgroups | gmane.os.netbsd.current |
|---|---|
| Message-ID | <[email protected]> |
> On Apr 24, 2026, at 11:33 PM, Martin Husemann <[email protected]> wrote: > > On Sat, Apr 25, 2026 at 12:28:36AM +0200, Thomas Klausner wrote: >> I also noticed that NetBSD does not provide pthread_main_np() to >> identify the main thread of a program; which would be helpful for some >> code since the stack layouts are different for main and other threads. >> >> Is there a reason for not providing this, or should we just add it? > > My vote: we should just add it. Yah, I would agree. -- thorpej