Home
last modified time | relevance | path

Searched refs:mcerr (Results 1 – 5 of 5) sorted by relevance

/third_party/boost/libs/thread/example/
Dnot_interleaved.cpp15 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()
Dproducer_consumer_bounded.cpp120 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()
Dproducer_consumer.cpp120 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()
Dproducer_consumer2.cpp123 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()
Dnot_interleaved2.cpp22 ostream_buffer<std::ostream> mcerr(std::cerr); in use_cerr() local
23 mcerr.stream() << "logging data to cerr " << i++ << "\n"; in use_cerr()