ast-experimental
Last change
on this file since bdbf536 was
c26bea2a,
checked in by Peter A. Buhr <pabuhr@…>, 18 months ago
|
first attempt at renaming directory tests/concurrent to tests/concurrency to harmonize with other concurrency directory names
|
-
Property mode set to
100644
|
File size:
200 bytes
|
Line | |
---|
1 | #include <thread.hfa> |
---|
2 | |
---|
3 | thread Parker {}; |
---|
4 | void main( Parker & ) { |
---|
5 | park(); |
---|
6 | } |
---|
7 | |
---|
8 | int main() { |
---|
9 | for(1000) { |
---|
10 | Parker parker; |
---|
11 | unpark( parker ); |
---|
12 | } |
---|
13 | printf( "done\n" ); // non-empty .expect file |
---|
14 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.