Changes in tests/concurrent/spinaphore.cfa [8f1a99e:84cd72d]
- File:
-
- 1 edited
-
tests/concurrent/spinaphore.cfa (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/concurrent/spinaphore.cfa
r8f1a99e r84cd72d 21 21 void main(Blocker & this); 22 22 23 Blocker * from_thread( thread$* t) {23 Blocker * from_thread($thread * t) { 24 24 Blocker & nullb = *(Blocker*)0p; 25 thread$& nullt = (thread&)nullb;25 $thread & nullt = (thread&)nullb; 26 26 uintptr_t offset = (uintptr_t)&nullt; 27 27 uintptr_t address = ((uintptr_t)t) - offset; … … 30 30 31 31 void main(Blocker & this) { 32 thread$* me = active_thread();32 $thread * me = active_thread(); 33 33 Blocker * me1 = &this; 34 34 Blocker * me2 = from_thread(me); … … 51 51 unsigned me = (unsigned)(uintptr_t)&this; 52 52 for(num_unblocks) { 53 thread$* t = V(sem, false);53 $thread * t = V(sem, false); 54 54 Blocker * b = from_thread(t); 55 55 b->sum += me;
Note:
See TracChangeset
for help on using the changeset viewer.