|
AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface
|
| void drama::logging::Logger::RegisterThread | ( | std::thread::id | sourceThread, |
| std::thread::id | newThread, | ||
| const char * | func = "*unnamed func*" |
||
| ) |
Register the DRAMA context of one thread against a new thread.
If the specified newThread logs a message, the DRAMA context will be set to that associated with the source thread, if any.
| sourceThread | The ID of the thread who's previously registered DRAMA thread is to be used. |
| newThread | The ID of the new thread to have the same DRAMA context as sourceThread. |
| func | A name used in a log message to indicate the function doing the registering. Defaults to "*unnamed func*", but the name of the current function (from the macro func), is possible, but only 16 chars available. |