Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/thread.c

    rcb0e6de rbd4d011  
    44#include <thread>
    55
    6 struct First { thread_desc __thrd; signal_once* lock; };
    7 struct Second { thread_desc __thrd; signal_once* lock; };
     6// thread First;
     7// void main(First* this);
    88
    9 DECL_THREAD(First);
    10 DECL_THREAD(Second);
     9// thread Second;
     10// void main(Second* this);
     11
     12thread First  { signal_once* lock; };
     13thread Second { signal_once* lock; };
    1114
    1215void ?{}( First * this, signal_once* lock ) { this->lock = lock; }
    1316void ?{}( Second * this, signal_once* lock ) { this->lock = lock; }
    14 
    15 void ^?{}( First  * mutex this ) {}
    16 void ^?{}( Second * mutex this ) {}
    1717
    1818void main(First* this) {
     
    3939                processor p;
    4040                {
    41                         scoped(First)  f = { &lock };
    42                         scoped(Second) s = { &lock };
     41                        First  f = { &lock };
     42                        Second s = { &lock };
    4343                }
    4444        }
Note: See TracChangeset for help on using the changeset viewer.