std::condit...tive_handle(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

✨ NAME ✨

okay so bestie, welcome to the <rainbow>C++ Standard Libary</rainbow> manual πŸ’– this page is std::condit...tive_handle(3), and the star of the show is std::condition_variable::native_handle.

The NAME section literally gives it to you twice, no cap: std::condition_variable::native_handle β€” std::condition_variable::native_handle. Repetition is a vibe, periodt πŸ’…


🌸 Synopsis 🌸

native_handle_type native_handle();  (since C++11)

It accesses the native handle of *this. That's the whole move 🫢

The meaning and the type of the result of this function is implementation-defined. So the standard is like "you'll know it when your implementation tells you" 😭

On a POSIX system, this may be a value of type pthread_cond_t*. On a Windows system, this may be a PCONDITION_VARIABLE. Both of those are literally in the original, so don't come for me 🧚


πŸŽ€ Parameters πŸŽ€

  • (none) β€” literally zero arguments, not a single one, the audacity is iconic πŸ’€

πŸ’– Return value πŸ’–

The native handle of this condition variable. That's it, that's the return value β€” main character energy only πŸ‘‘


πŸ¦‹ See also πŸ¦‹

  • native_handle returns the underlying implementation-defined thread handle β€” public member function of std::thread ✨
  • native_handle returns the underlying implementation-defined thread handle β€” public member function of std::jthread 🌈

cute little sign-off bestie: source/version/date check is http://cppreference.com, 2024.06.10, and we're on std::condit...tive_handle(3). byeeee πŸ’…πŸŽ€

πŸ“¦ where this page comes from