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
F142163863: D37284.id112716.diff
Fri, Jan 16, 3:55 PM
Unknown Object (File)
Wed, Jan 7, 6:18 PM
Unknown Object (File)
Tue, Jan 6, 10:05 AM
Unknown Object (File)
Wed, Dec 31, 12:58 PM
Unknown Object (File)
Dec 10 2025, 10:30 PM
Unknown Object (File)
Nov 21 2025, 12:43 AM
Unknown Object (File)
Oct 29 2025, 1:43 PM
Unknown Object (File)
Oct 29 2025, 1:29 PM

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