This is a disaster, SCons is annoying the shit out of me, I guess I am going to build...
[ail.git] / source / printer.cpp
blobc0ddfcba531cf61b080979e92fedea92d2332599
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;