std_thread.h(3cxx)
β¨ std_thread.h β¨
okay so bestie, this is the manual page for std_thread.h β that's section 3cxx of the manual, if you're keeping track π
. it's a header file manual, not a command, so no synopsis-with-flags energy here, just vibes and class listings π¦
πΈ NAME πΈ
std_thread.h β the thread-y header, manual page 3cxx, and yes she is a whole queen π
π SYNOPSIS π
π Classes
struct std::hash< thread::id >β thestd::hashspecialization forthread::id. so you can hash a thread id, bestie, that's the whole job β¨class std::thread::idβ the class that is a thread id. no notes. iconic behavior πclass std::threadβ the actualstd::threadclass. the main character of this entire header, lowkey π
π¦ Namespaces
namespace stdβ the ISO C++ toplevel namespace. that'sstd. you already know her, she's everywhere, she's the blueprint πnamespace std::this_threadβ the ISO C++ 2011 namespace for interacting with the current thread. the one you're standing in right now, bestie π«Ά
π₯ Functions
thread::id std::this_thread::get_id () noexceptβ gives you the unique identifier of the current thread. that's the one and only you πvoid std::this_thread::yield () noexceptβ lets the implementation go schedule a different thread instead. it's giving "okay bestie, you go ahead, I'll wait my turn" π
π Detailed Description π
okay so the important thing, and I mean the important thing, bestie:
This is an internal header file, included by other library headers. Do not attempt to use it directly. Instead, include <thread>.
fr fr, do not be out here #include-ing this one directly. it's not for you like that. it's backstage. it's the green room. you want the public entrance, and the public entrance is <thread> π
β¨
π«Ά Author π«Ά
Generated automatically by Doxygen for libstdc++, straight from the source code. so nobody hand-wrote this one, she was born this way π§β¨
and that's the whole page, babe π this manual is libstdc++, dated std_thread.h(3cxx) β no cap, that's the footer, and you read it all the way to the end. slay πΈππ
π¦ where this page comes from
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- ubuntu resolute: libstdc++-12-doc 12.5.0-9ubuntu1
- ubuntu resolute: libstdc++-13-doc 13.4.0-10ubuntu1
- ubuntu resolute: libstdc++-14-doc 14.3.0-14ubuntu1
- ubuntu resolute: libstdc++-15-doc 15.2.0-16ubuntu1
- ubuntu resolute: libstdc++-16-doc 16-20260322-1ubuntu1
- ubuntu stonking: libstdc++-12-doc 12.5.0-9ubuntu1
- ubuntu stonking: libstdc++-13-doc 13.5.0-1ubuntu1
- ubuntu stonking: libstdc++-14-doc 14.4.0-2ubuntu1
- ubuntu stonking: libstdc++-15-doc 15.3.0-4ubuntu1
- ubuntu stonking: libstdc++-16-doc 16.2.0-3ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms