ail now builds on Linux
[ail.git] / ail / printer.cpp
blob893bb902702c46db9b9be18dc935c519985a7b4c
1 #include <ail/printer.hpp>
3 #include <iostream>
5 #include <boost/thread/mutex.hpp>
7 namespace
9 boost::mutex console_mutex;
12 namespace ail
15 void print(std::string const & input)
17 raw_print(input + "\n");
20 void raw_print(std::string const & input)
22 boost::mutex::scoped_lock scoped_lock(console_mutex);
23 std::cout << input;