Changeset 9304ca2 for doc/theses/thierry_delisle_PhD/code/snzi.hpp
- Timestamp:
- Jul 22, 2020, 4:05:29 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 2e5fd8b6
- Parents:
- c0587193
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/thierry_delisle_PhD/code/snzi.hpp
rc0587193 r9304ca2 14 14 15 15 void arrive(int idx) { 16 idx >>= 2; 16 17 idx %= mask; 17 18 nodes[idx].arrive(); … … 19 20 20 21 void depart(int idx) { 22 idx >>= 2; 21 23 idx %= mask; 22 24 nodes[idx].depart(); … … 82 84 if( x.cnt == val_t::Half ) { 83 85 /* paranoid */ assert(parent); 84 parent->arrive(); 86 if(undoArr == 2) { 87 undoArr--; 88 } else { 89 parent->arrive(); 90 } 85 91 if( !value.cas(x, 1, x.ver) ) { 86 92 undoArr = undoArr + 1;
Note: See TracChangeset
for help on using the changeset viewer.