BloombergLP::ball::AttributeContext::getContext

Return the address of the current thread's attribute context, creating one if needed.

Synopsis

Declared in <ball_attributecontext.h>

static
AttributeContext*
getContext();

Description

Return the address of the current thread's attribute context, if such context exists; otherwise, create an attribute context, install it in thread-local storage, and return the address of the newly created context. Note that this method can be invoked safely even if the initialize class method has not yet been called.

Return Value

address of this thread's attribute context