Changeset b580bcc for tests/concurrent
- Timestamp:
- Apr 1, 2021, 4:20:00 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum, stuck-waitfor-destruct
- Children:
- fd1f65e
- Parents:
- 3bd2464 (diff), 198e335 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- tests/concurrent
- Files:
-
- 2 added
- 1 edited
-
.expect/semaphore.txt (added)
-
semaphore.cfa (added)
-
spinaphore.cfa (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/concurrent/spinaphore.cfa
r3bd2464 rb580bcc 36 36 this.sum = 0; 37 37 for(num_blocks) { 38 // sout | "b P" | me;39 38 P(sem); 40 39 if(((thread&)this).seqable.next != 0p) sout | "Link not invalidated"; 41 // sout | "a P" | me;42 40 } 43 41 } … … 58 56 this.sum += (unsigned)b; 59 57 unpark(t); 60 // sout | "a V" | t;61 58 yield(random(10)); 62 59 }
Note:
See TracChangeset
for help on using the changeset viewer.