std::lock_error(3)

πŸ“¦ version 4.4.0, in nixpkgs unstable

πŸ’… std::lock_error(3) β€” the manual, but make it make sense

okay so bestie, welcome to std::lock_error(3) from the Library Functions Manual ✨ this is a C++ thing, it lives in libstdc++, and it's honestly a whole vibe. let's get into it 🫢


✨ NAME ✨

std::lock_error β€” the exception that gets thrown when something goes wrong with lock operations 😭 no cap, that's literally its whole job.


🌸 SYNOPSIS 🌸

Inherits std::exception.

πŸŽ€ Public Member Functions πŸŽ€

virtual const char * what () const throw ()

πŸ’– Detailed Description πŸ’–

std::lock_error is thrown to indicate errors with lock operations. that's it, that's the tea πŸ“ it's the little exception whose entire main character energy is "hey bestie, a lock operation went sideways."

lowkey an important detail iykyk: it's Definition at line 394 of file mutex πŸ“ so if you're out here reading source, that's where it lives.


πŸ”₯ Member Function Documentation πŸ”₯

⭐ virtual const char* std::lock_error::what () const throw () [virtual]

okay so what() returns a C-style character string describing the general cause of the current error ✨ like, it tells you what went wrong in plain-ish text. iconic behaviour honestly πŸ‘‘

this one is Reimplemented from std::exception β€” so it's overriding the base class version, periodt πŸ’…


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code. yeah, nobody hand-wrote this one, the robots did it πŸ€–βœ¨


πŸ’€ reminder bestie: what() is marked throw () β€” that's the old-school exception spec from the page, so copy it exactly as written, no "fixing" it πŸ™ˆ

and that's the whole page, bestie, you ate that πŸŽ€πŸ’–

this cutie was brought to you by libstdc++, dated 21 Apr 2009, and it's the std::lock_error(3) page fr fr β€” go forth and handle your lock errors with main character energy πŸ¦‹β­

πŸ“¦ where this page comes from