About 50 results
Open links in new tab
  1. std::thread::detach - cppreference.com

    Jun 3, 2021 · Separates the thread of execution from the thread object, allowing execution to continue independently. Any allocated resources will be freed once the thread exits. After calling detach *this …

  2. std::jthread::detach - cppreference.com

    Jun 3, 2021 · Separates the thread of execution from the jthread object, allowing execution to continue independently. Any allocated resources will be freed once the thread exits. After calling detach *this …

  3. std::unique_ptr - cppreference.com

    Apr 8, 2025 · Notes Only non-const unique_ptr can transfer the ownership of the managed object to another unique_ptr. If an object's lifetime is managed by a const std::unique_ptr, it is limited to the …

  4. std::thread::join - cppreference.com

    Jun 3, 2021 · Blocks the current thread until the thread identified by *this finishes its execution. The completion of the thread identified by *this synchronizes with the corresponding successful return …

  5. std::thread::~thread - cppreference.com

    Oct 24, 2023 · Destroys the thread object. If *this has an associated thread (joinable() == true), std::terminate() is called. Notes A thread object does not have an associated thread (and is safe to …

  6. std::thread::joinable - cppreference.com

    Jul 8, 2020 · Checks if the std::thread object identifies an active thread of execution. Specifically, returns true if get_id() != std::thread::id(). So a default constructed thread is not joinable. A thread that has …

  7. thrd_detach - cppreference.com

    Mar 17, 2022 · [edit] Defined in header <threads.h> int thrd_detach(thrd_t thr ); (since C11)

  8. std::unique_ptr<T,Deleter>::unique_ptr - cppreference.com

    Jan 24, 2025 · 5) Constructs a unique_ptr by transferring ownership from u to *this and stores the null pointer in u. This constructor only participates in overload resolution if …

  9. std:: async - cppreference.com

    Oct 28, 2024 · The function template std::async runs the function f asynchronously (potentially in a separate thread which might be a part of a thread pool) and returns a std::future that will eventually …

  10. std::jthread - cppreference.com

    Apr 26, 2023 · The class jthread represents a single thread of execution. It has the same general behavior as std::thread, except that jthread automatically rejoins on destruction, and can be …