queuing_rw_mutex
[mutex.queuing_rw_mutex]
queuing_rw_mutex は、ReaderWriterMutex 要件の概念をモデル化するクラスです。queuing_rw_mutex は再帰的ではありません。queuing_rw_mutex はスレッドが要求された順番で mutex のロックを取得するという点でフェアです。
// <oneapi/tbb/queuing_rw_mutex.h> ヘッダーで定義
namespace oneapi {
namespace tbb {
class queuing_rw_mutex {
public:
queuing_rw_mutex() noexcept;
~queuing_rw_mutex();
queuing_rw_mutex(const queuing_rw_mutex&) = delete;
queuing_rw_mutex& operator=(const queuing_rw_mutex&) = delete;
class scoped_lock;
static constexpr bool is_rw_mutex = true;
static constexpr bool is_recursive_mutex = false;
static constexpr bool is_fair_mutex = true;
};
} // namespace tbb
} // namespace oneapiメンバークラス
- class scoped_lock
scoped_lockクラスに相当します。ReaderWriterMutex の要件を参照してください。
メンバー関数
- queuing_rw_mutex()
ロック解除された
queuing_rw_mutexを作成します。
- ~queuing_rw_mutex()
ロック解除された
queuing_rw_mutexを破棄します。
