Re: parts of a thread stack mapping, pthread_main_np()
Martin Husemann <[email protected]> Sat, 25 Apr 2026 08:33:46 +0200
| Newsgroups | gmane.os.netbsd.current |
|---|---|
| Message-ID | <[email protected]> |
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. Martin