Mercurial > hg > Members > Moririn
diff src/parallel_execution/context.h @ 444:0c024ea61601
Using cas interface but occurred warning
author | Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 26 Nov 2017 04:26:44 +0900 |
parents | 5a737c3df91c |
children | 57132ef16009 |
line wrap: on
line diff
--- a/src/parallel_execution/context.h Tue Nov 21 09:28:27 2017 +0900 +++ b/src/parallel_execution/context.h Sun Nov 26 04:26:44 2017 +0900 @@ -232,6 +232,7 @@ struct SynchronizedQueue { struct Element* top; struct Element* last; + struct Atomic* atomic; } SynchronizedQueue; // Stack Interface struct Stack { @@ -303,13 +304,14 @@ } Node; struct Atomic { union Data* atomic; - union Data* data; + union Data** ptr; + union Data* oldData; + union Data* newData; enum Code checkAndSet; enum Code next; enum Code fail; } Atomic; struct AtomicReference { - union Data* data; } AtomicReference; struct Semaphore { union Data* semaphore;