Changeset 924c5ce
- Timestamp:
- Dec 6, 2019, 3:15:11 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- e1990f1
- Parents:
- 3b0c8cb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/concurrent/thread.cfa
r3b0c8cb r924c5ce 7 7 thread Second { semaphore* lock; }; 8 8 9 void ?{}( First & this, semaphore & lock ) { ((thread&)this) .self_cor.name = "Thread 1"; this.lock = &lock; }10 void ?{}( Second & this, semaphore & lock ) { ((thread&)this) .self_cor.name = "Thread 2"; this.lock = &lock; }9 void ?{}( First & this, semaphore & lock ) { ((thread&)this){ "Thread 1" }; this.lock = &lock; } 10 void ?{}( Second & this, semaphore & lock ) { ((thread&)this){ "Thread 2" }; this.lock = &lock; } 11 11 12 12 void main(First& this) {
Note: See TracChangeset
for help on using the changeset viewer.