source:
tests/concurrency/park/start_parked.cfa
@
5f225f5
Last change on this file since 5f225f5 was c26bea2a, checked in by , 18 months ago | |
---|---|
|
|
File size: 200 bytes |
Rev | Line | |
---|---|---|
[cb196f2] | 1 | #include <thread.hfa> |
2 | ||
3 | thread Parker {}; | |
4 | void main( Parker & ) { | |
[e235429] | 5 | park(); |
[cb196f2] | 6 | } |
7 | ||
8 | int main() { | |
[66812dd] | 9 | for(1000) { |
10 | Parker parker; | |
[e235429] | 11 | unpark( parker ); |
[66812dd] | 12 | } |
13 | printf( "done\n" ); // non-empty .expect file | |
14 | } |
Note: See TracBrowser
for help on using the repository browser.