Changes in tests/unified_locking/fast.cfa [07033ce:62006a3]
- File:
-
- 1 edited
-
tests/unified_locking/fast.cfa (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/unified_locking/fast.cfa
r07033ce r62006a3 22 22 uint32_t cs() { 23 23 $thread * me = active_thread(); 24 uint32_t value ;24 uint32_t value = (uint32_t)me; 25 25 lock(mo.l); 26 26 { … … 28 28 mo.id = me; 29 29 yield(random(5)); 30 value = ((uint32_t)random()) ^ ((uint32_t)me);31 30 if(mo.id != me) sout | "Intruder!"; 32 31 mo.sum = tsum + value;
Note:
See TracChangeset
for help on using the changeset viewer.