問題タブ [std-future]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
512 参照

c++ - std::future クラス メンバーを可変として宣言するのはスレッド セーフですか?

関数がその状態を変更するため、 a をあるstd::futureものとして宣言することは安全 (スレッドセーフ) ですか。どちらが安全に作られているかのようなものだと思います。mutableget()std::mutexmutable