https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251112

--- Comment #5 from Andrew Stitcher <[email protected]> ---
(In reply to Konstantin Belousov from comment #4)

I'm not sure I really understand what you mean about linking with libpthread.so
changing the behaviour of libc.so. Most of the FreeBSD pthread calls are
already in libc (or at least don't need to explicitly link with -lpthread
according to the manpage).

So I expected that libc is already multithreaded and linking in pthread is only
used for the _np (non portable/posix) pthread calls.

Looking at the clang source code pthread_attr_get_np is used to get the stack
parameters (pthread_getattr_np is #defined to pthread_attr_get_np):

  pthread_attr_t attr;
  pthread_attr_init(&attr);
  CHECK_EQ(pthread_getattr_np(pthread_self(), &attr), 0);
  my_pthread_attr_getstack(&attr, &stackaddr, &stacksize);
  pthread_attr_destroy(&attr);

I'm not sure how relevant this is to what you're interested in, but the symbol
is used to call a function.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to