OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
logger::ThreadLocalIds Struct Reference

#include <Logger.h>

Public Member Functions

 ThreadLocalIds ()=default
 
 ThreadLocalIds (RequestId const request_id, ThreadId const thread_id)
 
LocalIdsScopeGuard setNewThreadId () const
 

Public Attributes

RequestId request_id_
 
ThreadId thread_id_
 

Detailed Description

Definition at line 136 of file Logger.h.

Constructor & Destructor Documentation

logger::ThreadLocalIds::ThreadLocalIds ( )
default

Referenced by setNewThreadId().

+ Here is the caller graph for this function:

logger::ThreadLocalIds::ThreadLocalIds ( RequestId const  request_id,
ThreadId const  thread_id 
)
inline

Definition at line 140 of file Logger.h.

RequestId request_id_
Definition: Logger.h:137
ThreadId thread_id()
Definition: Logger.cpp:877
RequestId request_id()
Definition: Logger.cpp:874
ThreadId thread_id_
Definition: Logger.h:138

Member Function Documentation

LocalIdsScopeGuard logger::ThreadLocalIds::setNewThreadId ( ) const

Definition at line 538 of file Logger.cpp.

References logger::anonymous_namespace{Logger.cpp}::g_next_thread_id, logger::anonymous_namespace{Logger.cpp}::g_thread_local_ids(), request_id_, and ThreadLocalIds().

Referenced by RangeJoinHashTable::reifyForDevice(), BoundingBoxIntersectJoinHashTable::reifyForDevice(), PerfectJoinHashTable::reifyForDevice(), and BaselineJoinHashTable::reifyForDevice().

538  {
539  ThreadLocalIds const prev_thread_local_ids = g_thread_local_ids;
541  return {prev_thread_local_ids, g_thread_local_ids};
542 }
RequestId request_id_
Definition: Logger.h:137
thread_local ThreadLocalIds g_thread_local_ids(0, 0)
std::atomic< ThreadId > g_next_thread_id
Definition: Logger.cpp:473

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation


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