mutexを使わなくても共有できるデータ構造について。 Compare and Setという不可分な操作を直列化の拠り所として共有するデータ構造です。 コア数が増えて来たときに高い並列性を期待出来るのではないかと思われます。 キモとなるeunque,deque操作のソースコードを貼っておきます。 void enq(const T& v){ Node* const node = new Node(v); while(1){ const Node* const last = mTail; const Node* const next = last->mNext; if(last != mTail){ continue; } // 確保中にデータが書き換わってしまったのでやり直し if(next == NULL){ // 正常な形のバッファだったら if(compare_and_set(&las
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く