std::mutex::mutex(3)
π std::mutex::mutex(3) π
okay so bestie, this is the std::mutex::mutex page from the C++ Standard Libary manual β constructor content for std::mutex itself. the NAME section is literally std::mutex::mutex - std::mutex::mutex. yes, she said what she said π
π¦ Synopsis π¦
constexpr mutex() noexcept; (1) (since C++11)
mutex( const mutex& ) = delete; (2) (since C++11)
- Constructs the mutex. After the constructor completes, the mutex is in unlocked state β¨
- The copy constructor is deleted β that's the whole note, periodt π
πΈ Parameters πΈ
(none) β literally no parameters, bestie. zero. nada. π«Ά
π Notes π
Because the default constructor is constexpr, static mutexes are initialized as part of static non-local initialization, before any dynamic non-local initialization begins. That makes it safe to lock a mutex in a constructor of any static object β iconic safety behavior, no cap π₯
β See also β
C documentation for mtx_init π
that's the tea, bestie β source: http://cppreference.com, version/date: 2024.06.10, page: std::mutex::mutex(3) πβ¨
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms