Base Framework
|
#include <base/concurrency/ThreadLocalContext.h>
Inherits DynamicObject.
Public Attributes | |
Thread * | thread = nullptr |
unsigned int | simpleId = 0 |
String | name |
struct { | |
unsigned int suspended = 0 | |
unsigned int captureIO = 32 | |
unsigned int tasks = 0 | |
Allocator< Profiler::Event > events | |
} | profiling |
FixedResourceManager< STORAGE_BUFFERS > | storageManager |
Allocator< uint8 > | storage [STORAGE_BUFFERS] |
StringOutputStream | stringOutputStream |
unsigned int | stringOutputStreamUsage = 0 |
RandomInputStream | randomInputStream |
StackFrame | stackTrace |
unsigned int | numberOfExceptions = 0 |
uint64 | waiting = 0 |
uint64 | bytesRead = 0 |
uint64 | bytesWritten = 0 |
Static Public Attributes | |
static constexpr unsigned int | STORAGE_BUFFERS = 4 |
static constexpr unsigned int | PROFILER_TASKS = 64 |
Additional Inherited Members | |
![]() | |
DynamicObject () noexcept | |
bool | isValidObject () const noexcept |
virtual | ~DynamicObject () noexcept(false) |
_COM_AZURE_DEV__BASE__OVERRIDE_ALLOC () | |
State for all threads. Do NOT access directly from external modules. Context may change at any time.
uint64 ThreadLocalContext::bytesRead = 0 |
Bytes read.
uint64 ThreadLocalContext::bytesWritten = 0 |
Bytes written.
unsigned int ThreadLocalContext::numberOfExceptions = 0 |
Number of exceptions thrown by thread.
struct { ... } ThreadLocalContext::profiling |
Profiling context.
RandomInputStream ThreadLocalContext::randomInputStream |
Random generator.
unsigned int ThreadLocalContext::simpleId = 0 |
Simple unique id - does NOT relate to system IDs.
StackFrame ThreadLocalContext::stackTrace |
Last known stack trace for exception.
Allocator<uint8> ThreadLocalContext::storage[STORAGE_BUFFERS] |
The thread local storage.
FixedResourceManager<STORAGE_BUFFERS> ThreadLocalContext::storageManager |
Counter for storage usage.
StringOutputStream ThreadLocalContext::stringOutputStream |
String output stream.
unsigned int ThreadLocalContext::stringOutputStreamUsage = 0 |
String output stream.
Thread* ThreadLocalContext::thread = nullptr |
The thread object associated with context.
uint64 ThreadLocalContext::waiting = 0 |
Total microseconds spend waiting.