Files
cppdraft_translate/cppdraft/thread/thread/static.md
2025-10-25 03:02:53 +03:00

787 B

[thread.thread.static]

32 Concurrency support library [thread]

32.4 Threads [thread.threads]

32.4.3 Class thread [thread.thread.class]

32.4.3.7 Static members [thread.thread.static]

🔗

unsigned hardware_concurrency() noexcept;

1

#

Returns: The number of hardware thread contexts.

[Note 1:

This value should only be considered to be a hint.

— end note]

If this value is not computable or well-defined, an implementation should return 0.