std::recurs...ursive_mutex(3)
okay so welcome to the std::recurs...ursive_mutex(3) page from the C++ Standard Libary β yes, thatβs the manual name, folded in right here at the top like a little name tag π«Ά. The star of the show is std::recursive_mutex::recursive_mutex, and weβre about to get into its constructor business. No cap.
β¨ NAME β¨
std::recursive_mutex::recursive_mutex β std::recursive_mutex::recursive_mutex. Thatβs the whole name, bestie, and itβs giving βwe are here for the constructorβ π
.
π¦ Synopsis π¦
recursive_mutex(); (1) (since C++11)
recursive_mutex( const recursive_mutex& ) = delete; (2) (since C++11)
okay so there are two constructor-ish lines, both since C++11:
recursive_mutex();β this one constructs the mutex. After the call, the mutex is in unlocked state. Slay.recursive_mutex( const recursive_mutex& ) = delete;β the copy constructor is deleted. Not me trying to copy arecursive_mutex; itβs literally deleted, fr fr.
π Parameters π
(none) β bestie, there are no parameters here. Zero. None. The parameter list is on a little vacation π.
π Exceptions π
If the construction is unsuccessful, you get std::system_error. Thatβs the exception tea β β keep it in mind.
π₯ See also π₯
If you want the C-side lore, check the C documentation for mtx_init. iykyk π.
source/version: http://cppreference.com Β· date: 2024.06.10 Β· page: std::recurs...ursive_mutex(3) β mwah, bestie, go build something iconic πβ¨
π¦ 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