source:
tests/concurrency/waitfor/inlinemutex.cfa
| Last change on this file was 2b3ebe5, checked in by , 12 hours ago | |
|---|---|
|
|
| File size: 159 bytes | |
| Rev | Line | |
|---|---|---|
| [2b3ebe5] | 1 | #include "inlinemutex.hfa" |
| 2 | ||
| 3 | void main( Cleaner & this ) { | |
| 4 | waitfor( cleanup : this ) { | |
| 5 | sout | "Cleaning"; | |
| 6 | } | |
| 7 | ||
| 8 | waitfor( ^?{} : this ) { | |
| 9 | sout | "Done"; | |
| 10 | } | |
| 11 | } |
Note:
See TracBrowser
for help on using the repository browser.