source: tests/concurrency/mutexstmt/tuple.cfa@ faf9e19

Last change on this file since faf9e19 was bdf4cd9e, checked in by caparsons <caparson@…>, 2 years ago

added test for mutex stmt tuples and changed actor test to use a unnamed param to test the virtual dtor fix

  • Property mode set to 100644
File size: 350 bytes
Line 
1#include <fstream.hfa>
2#include <mutex_stmt.hfa>
3#include <locks.hfa>
4
5ofstream & f() {
6 return sout;
7}
8
9single_acquisition_lock APPLE, BANANA, c, d;
10
11int main() {
12 mutex( sout ) sout | 3 | 4 | 5;
13 mutex( [ f(), [ APPLE, [ c, d ], BANANA ] ] ) sout | 7 | 8 | 9;
14 mutex( [ [ APPLE, BANANA ], [ c, d ]] ) sout | 0 | 1 | 2;
15}
Note: See TracBrowser for help on using the repository browser.