OmniSciDB  c1a53651b2
 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 ( )

Referenced by setNewThreadId().

+ Here is the caller graph for this function:

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

Definition at line 140 of file Logger.h.

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

Member Function Documentation

LocalIdsScopeGuard logger::ThreadLocalIds::setNewThreadId ( ) const

Definition at line 532 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(), OverlapsJoinHashTable::reifyForDevice(), PerfectJoinHashTable::reifyForDevice(), and BaselineJoinHashTable::reifyForDevice().

532  {
533  ThreadLocalIds const prev_thread_local_ids = g_thread_local_ids;
535  return {prev_thread_local_ids, g_thread_local_ids};
536 }
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:469

+ 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: