Resource loader thread local data. More...
#include <kanzi/core.ui/resource/resource.hpp>
Public Member Functions | |
string_view | getShortThreadName () const |
Returns the short name of the thread that is doing the loading. More... | |
string_view | getThreadName () const |
Returns the name of thread that is doing the loading. More... | |
ResourceLoaderThreadContext (string_view name, string_view shortName) | |
Constructor. More... | |
Resource loader thread local data.
|
explicit |
Constructor.
name | Name of the loader thread. |
shortName | Shortened name of the loader thread, to be set as thread native name. |
|
inline |
Returns the name of thread that is doing the loading.
Used by resource profiling to make it human-readable.
|
inline |
Returns the short name of the thread that is doing the loading.
Kanzi uses this function to set the thread native name and as a callback parameter for easier machine parsing.