Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::ThreadContext Class Reference

The ThreadContext holds thread-local info for parallel usage. More...

#include <duckdb.hpp>

Collaboration diagram for duckdb::ThreadContext:

Public Member Functions

 ThreadContext (ClientContext &context)

Public Attributes

OperatorProfiler profiler
 The operator profiler for the individual thread context.
unique_ptr< Logger > logger

Detailed Description

The ThreadContext holds thread-local info for parallel usage.

Constructor & Destructor Documentation

◆ ThreadContext()

duckdb::ThreadContext::ThreadContext ( ClientContext & context)
explicit
335518 : profiler(context) {
335519 LoggingContext log_context(LogContextScope::THREAD);
335520
335521 log_context.connection_id = context.GetConnectionId();
335522 if (context.transaction.HasActiveTransaction()) {
335523 log_context.transaction_id = context.transaction.ActiveTransaction().global_transaction_id;
335524 auto query_id = context.transaction.GetActiveQuery();
335525 if (query_id == DConstants::INVALID_INDEX) {
335526 log_context.query_id = optional_idx();
335527 } else {
335528 log_context.query_id = query_id;
335529 }
335530 }
335531
335532 log_context.thread_id = TaskScheduler::GetEstimatedCPUId();
335533 logger = LogManager::Get(context).CreateLogger(log_context, true);
335534}
static idx_t GetEstimatedCPUId()
Definition duckdb.cpp:335387
OperatorProfiler profiler
The operator profiler for the individual thread context.
Definition duckdb.hpp:39457
static constexpr const idx_t INVALID_INDEX
The value used to signify an invalid index entry.
Definition duckdb.hpp:1117

◆ ~ThreadContext()

duckdb::ThreadContext::~ThreadContext ( )
335536 {
335537}

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