aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/frameworks/1 boost/linkexe.cc
blob: e00edee192513eba3a346d115d151aa4e4bb2289 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#define _XOPEN_SOURCE 500

#include<boost/thread.hpp>

boost::recursive_mutex m;

struct callable {
    void operator()() {
        boost::recursive_mutex::scoped_lock l(m);
    };
};

int main(int argc, char **argv) {
    callable x;
    boost::thread thr(x);
    thr.join();
    return 0;
}