BloombergLP::ball::Log::obtainMessageBuffer

obtainMessageBuffer overloads

Synopses

Declared in <ball_log.h>

Return a managed pointer to this thread's message-formatting buffer.

static
bslma::ManagedPtr<char>
obtainMessageBuffer(int* bufferSize);
» more...

Obtain exclusive access to this thread's message-formatting buffer.

static
char*
obtainMessageBuffer(
    bslmt::Mutex** mutex,
    int* bufferSize);
» more...

Return Value

  • managed pointer to this thread's exclusive message buffer
  • address of this thread's exclusive message-formatting buffer

Parameters

NameDescription
bufferSizeaddress at which to store the buffer size in bytes
mutexaddress at which to store the buffer-guarding mutex