About 7,550 results
Open links in new tab
  1. std::thread - cppreference.com

    Oct 24, 2023 · std::thread objects may also be in the state that does not represent any thread (after default construction, move from, detach, or join), and a thread of execution may not be …

  2. std::thread:: - cppreference.com

    Feb 23, 2024 · 3) Creates a new std::thread object and associates it with a thread of execution. The new thread of execution starts executing:

  3. 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 …

  4. Concurrency support library (since C++11) - cppreference.com

    Apr 29, 2025 · C++ includes built-in support for threads, atomic operations, mutual exclusion, condition variables, and futures.

  5. Standard library header <thread> (C++11) - cppreference.com

    Nov 27, 2023 · namespace std { class thread { public: // class thread::id class id; using native_handle_type = /* implementation-defined */; // construct/copy/destroy thread ...

  6. 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 …

  7. 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 …

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

    Oct 24, 2023 · Destroys the thread object. If *this has an associated thread (joinable()==true), std::terminate() is called.

  9. std::thread::id - cppreference.com

    Oct 24, 2023 · The class thread::id is a lightweight, trivially copyable class that serves as a unique identifier of std::thread and std::jthread (since C++20) objects. Instances of this class may also …

  10. std:: atomic - cppreference.com

    Feb 6, 2025 · Each instantiation and full specialization of the std::atomic template defines an atomic type. If one thread writes to an atomic object while another thread reads from it, the …