Last change
on this file since 5a553e2 was
bdf4cd9,
checked in by caparsons <caparson@…>, 14 months 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 | |
---|
5 | ofstream & f() { |
---|
6 | return sout; |
---|
7 | } |
---|
8 | |
---|
9 | single_acquisition_lock APPLE, BANANA, c, d; |
---|
10 | |
---|
11 | int 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.