Page MenuHomeFreeBSD

intro.3: Mention the 'libstdthread' ISO C11 library
ClosedPublic

Authored by gbe on Nov 6 2022, 10:18 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 9, 5:39 PM
Unknown Object (File)
Thu, Oct 9, 5:39 PM
Unknown Object (File)
Thu, Oct 9, 5:39 PM
Unknown Object (File)
Thu, Oct 9, 3:33 PM
Unknown Object (File)
Sun, Oct 5, 6:38 AM
Unknown Object (File)
Sep 1 2025, 2:23 AM
Unknown Object (File)
Aug 31 2025, 6:15 PM
Unknown Object (File)
Aug 16 2025, 6:36 AM

Details

Summary

Document 'libstdthreads' (aka the ISO C11 '<threads.h>' library).

It's still relatively uncommon to see C11 '<threads.h>' being used, but it's
worth documenting, especially since FreeBSD requires a different library for
C11 threads compared to glibc (part of '-lpthread') or
musl libc (included by default).

PR: 267551
Submitted by: Alois Klink <alois plus freebsd at aloisklink dot com>

Test Plan

mandoc output review and 'mandoc -Tlint' checks

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable