|
◆ RegisterThread() [3/3]
void drama::logging::Logger::RegisterThread |
( |
std::thread::id |
threadId = std::this_thread::get_id() , |
|
|
const char * |
func = "*unamed func*" |
|
) |
| |
Register the current DRAMA context against a thread.
If the specified thread logs a message, the DRAMA context will be set to that of the current thread.
- Note
- You should register any thread using DRAMA via the RegisterThread() methods. This is done automatically for drama::thread::TAction threaded action implementations and drama::thread::TUface thread UFACE methods.
Only threads created by other means need to worry about registering themselves.
- Parameters
-
threadId | The ID of the thread |
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. |
|