AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Static Public Member Functions | List of all members
alexaClientSDK::avsCommon::utils::logger::ThreadMoniker Class Reference

#include <ThreadMoniker.h>

Static Public Member Functions

static std::string getThisThreadMoniker ()
 
static std::string generateMoniker ()
 
static void setThisThreadMoniker (const std::string &moniker)
 

Detailed Description

Class to provide std::this_thread access to unique name for itself.

The name ThreadMoniker is used instead of ThreadId to avoid confusion with platform specific thread identifiers or the std::thread::id values rendered as a string.

Member Function Documentation

◆ generateMoniker()

std::string alexaClientSDK::avsCommon::utils::logger::ThreadMoniker::generateMoniker ( )
static

Generate a unique moniker.

Returns
A new unique moniker.

◆ getThisThreadMoniker()

std::string alexaClientSDK::avsCommon::utils::logger::ThreadMoniker::getThisThreadMoniker ( )
inlinestatic

Get the moniker for std::this_thread.

Returns
The moniker for std::this_thread.

◆ setThisThreadMoniker()

void alexaClientSDK::avsCommon::utils::logger::ThreadMoniker::setThisThreadMoniker ( const std::string &  moniker)
inlinestatic

Set the moniker for std::this_thread. This method should be called before getThisThreadMoniker() in order to take effect.

Parameters
monikerThe moniker for std::this_thread.

The documentation for this class was generated from the following files:

AlexaClientSDK 1.26.0 - Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0