OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
logger::anonymous_namespace{Logger.cpp} Namespace Reference

Functions

void unquote (std::string &str)
 
thread_local ThreadLocalIds g_thread_local_ids (0, 0)
 
ChannelLoggerget_channel_logger (Channel const channel)
 

Variables

std::atomic< RequestIdg_next_request_id {1}
 
std::atomic< ThreadIdg_next_thread_id {1}
 

Function Documentation

thread_local ThreadLocalIds logger::anonymous_namespace{Logger.cpp}::g_thread_local_ids ( ,
 
)
ChannelLogger& logger::anonymous_namespace{Logger.cpp}::get_channel_logger ( Channel const  channel)

Definition at line 477 of file Logger.cpp.

References logger::ASM, logger::EXECUTOR, logger::IR, and logger::PTX.

Referenced by logger::Logger::~Logger().

477  {
478  switch (channel) {
479  default:
480  case IR:
481  return gChannelLogger_IR::get();
482  case PTX:
483  return gChannelLogger_PTX::get();
484  case ASM:
485  return gChannelLogger_ASM::get();
486  case EXECUTOR:
487  return gChannelLogger_EXECUTOR::get();
488  }
489 }

+ Here is the caller graph for this function:

void logger::anonymous_namespace{Logger.cpp}::unquote ( std::string &  str)

Definition at line 413 of file Logger.cpp.

Referenced by logger::operator>>().

413  {
414  if (1 < str.size() && (str.front() == '\'' || str.front() == '"') &&
415  str.front() == str.back()) {
416  str.erase(str.size() - 1, 1);
417  str.erase(0, 1);
418  }
419 }

+ Here is the caller graph for this function:

Variable Documentation

std::atomic<RequestId> logger::anonymous_namespace{Logger.cpp}::g_next_request_id {1}

Definition at line 472 of file Logger.cpp.

Referenced by logger::set_new_request_id().

std::atomic<ThreadId> logger::anonymous_namespace{Logger.cpp}::g_next_thread_id {1}