The Meson Build System http://mesonbuild.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 lines
266 B

#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;
}