21 #ifndef mia_core_threadedmsg_hh 22 #define mia_core_threadedmsg_hh 63 template <
typename OS>
64 static void set_master_stream(OS& master);
66 template <
typename OS,
typename placeholder>
friend struct __dispatch_set_master_stream;
68 static void do_set_master_stream(std::ostream& master);
89 template <
typename OS,
typename placeholder>
90 struct __dispatch_set_master_stream {
91 static void apply(OS &master){
92 CThreadMsgStream::do_set_master_stream(master);
97 template <
typename placeholder>
100 static_assert(
sizeof(placeholder) == 0,
101 "CThreadMsgStream can't be used as master stream because it would deadlock.");
107 template <
typename OS>
110 __dispatch_set_master_stream<OS, int>::apply(master);
static void set_master_stream(OS &master)
#define NS_MIA_BEGIN
conveniance define to start the mia namespace
This class is used to handle syncronizized output of logging output in a multi-threaded environment...
#define EXPORT_CORE
Macro to manage Visual C++ style dllimport/dllexport.
#define NS_MIA_END
conveniance define to end the mia namespace