---
name: "std::thread.h"
section: "3cxx"
platform: "linux"
package: "libstdc++-12-doc"
version: "12.4.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/std::thread.h"
---

# std::thread.h(3cxx)

## NAME

std\_thread.h

## SYNOPSIS

### Classes

struct **std::hash\< thread::id \>**\
 std::hash specialization for thread::id.  class **std::thread::id**\
 class **std::thread**\

### Namespaces

namespace **std**\
 ISO C++ entities toplevel namespace is std.  namespace **std::this\_thread**\
 ISO C++ 2011 namespace for interacting with the current thread.

### Functions

**thread::id** **std::this\_thread::get\_id** () noexcept\
 The unique identifier of the current thread.  **void** **std::this\_thread::yield** () noexcept\
 Allow the implementation to schedule a different thread.

## Detailed Description

This is an internal header file, included by other library headers. Do not attempt to use it directly. Instead, include \<thread\>.

## Author

Generated automatically by Doxygen for libstdc++ from the source code.
