Searched refs:mcerr (Results 1 – 5 of 5) sorted by relevance
/third_party/boost/libs/thread/example/ |
D | not_interleaved.cpp | 15 void use_cerr(boost::externally_locked_stream<std::ostream> &mcerr) in use_cerr() argument 21 mcerr << "logging data to cerr\n"; in use_cerr() 43 externally_locked_stream<std::ostream> mcerr(std::cerr, terminal_mutex); in main() local 47 scoped_thread<> t1(boost::thread(use_cerr, boost::ref(mcerr))); in main()
|
D | producer_consumer_bounded.cpp | 120 externally_locked_stream<std::ostream> mcerr(std::cerr, terminal_mutex); in main() local 124 the_ostream &mcerr = std::cout; in main() local 133 scoped_thread<> t11(boost::thread(producer, boost::ref(mcerr), boost::ref(sbq))); in main() 134 scoped_thread<> t12(boost::thread(producer, boost::ref(mcerr), boost::ref(sbq))); in main()
|
D | producer_consumer.cpp | 120 externally_locked_stream<std::ostream> mcerr(std::cerr, terminal_mutex); in main() local 124 the_ostream &mcerr = std::cout; in main() local 133 scoped_thread<> t11(boost::thread(producer, boost::ref(mcerr), boost::ref(sbq))); in main() 134 scoped_thread<> t12(boost::thread(producer, boost::ref(mcerr), boost::ref(sbq))); in main()
|
D | producer_consumer2.cpp | 123 externally_locked_stream<std::ostream> mcerr(std::cerr, terminal_mutex); in main() local 127 the_ostream &mcerr = std::cout; in main() local 136 … scoped_thread<> t11(boost::thread(producer, boost::ref(mcerr), concurrent::queue_back<int>(sbq))); in main() 137 … scoped_thread<> t12(boost::thread(producer, boost::ref(mcerr), concurrent::queue_back<int>(sbq))); in main()
|
D | not_interleaved2.cpp | 22 ostream_buffer<std::ostream> mcerr(std::cerr); in use_cerr() local 23 mcerr.stream() << "logging data to cerr " << i++ << "\n"; in use_cerr()
|