Modules | |
Custom Debug Objects | |
Functions | |
void | libcwd::debug_ct::set_ostream (std::ostream *os) |
Set output device (single threaded applications).Assign a new ostream to this debug object (default is std::cerr ). For use in single threaded applications only. | |
std::ostream * | libcwd::debug_ct::get_ostream (void) const |
Get the ostream device as set with set_ostream(). | |
template<class T > | |
void | libcwd::debug_ct::set_ostream (std::ostream *os, T *mutex) |
Set output device and provide external lock.Assign a new ostream to this debug object. The ostream will only be written to after obtaining the lock that is passed as second argument. Each ostream needs to have a unique lock. If the application also writes directly to the same ostream then use the same lock. More... | |
void libcwd::debug_ct::set_ostream | ( | std::ostream * | os, |
T * | mutex | ||
) |
Set output device and provide external lock.Assign a new ostream
to this debug object. The ostream
will only be written to after obtaining the lock that is passed as second argument. Each ostream
needs to have a unique lock. If the application also writes directly to the same ostream
then use the same lock.
Example: