C++ 執行緒庫 - 函式 hardware_concurrency



描述

它返回硬體執行緒上下文數。

宣告

以下是 std::thread::native_handle 函式的宣告。

static unsigned hardware_concurrency() noexcept;

C++11

static unsigned hardware_concurrency() noexcept;

引數

返回值

它返回硬體執行緒上下文數。

異常

無異常保證 − 從不丟擲異常。

資料競爭

未指定。

thread.htm
廣告
© . All rights reserved.