test cases/frameworks/1 boost/linkexe.cc
raw| 1 | #define _XOPEN_SOURCE 500 |
| 2 | |
| 3 | #include<boost/thread.hpp> |
| 4 | |
| 5 | boost::recursive_mutex m; |
| 6 | |
| 7 | struct callable { |
| 8 | void operator()() { |
| 9 | boost::recursive_mutex::scoped_lock l(m); |
| 10 | }; |
| 11 | }; |
| 12 | |
| 13 | int main(int argc, char **argv) { |
| 14 | callable x; |
| 15 | boost::thread thr(x); |
| 16 | thr.join(); |
| 17 | return 0; |
| 18 | } |