Database System 0.1.0
Advanced C++20 Database System with Multi-Backend Support
Loading...
Searching...
No Matches
thread_adapter.h File Reference

Thread pool adapter with runtime backend selection. More...

#include "../core/configuration.h"
#include "../../core/concepts.h"
#include <chrono>
#include <cstddef>
#include <functional>
#include <future>
#include <memory>
#include <type_traits>
#include "../core/common_result.h"
Include dependency graph for thread_adapter.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  database::integrated::adapters::thread_adapter
 Thread pool adapter for async database operations. More...
 

Namespaces

namespace  database
 
namespace  database::integrated
 
namespace  database::integrated::adapters
 
namespace  database::integrated::adapters::backends
 

Enumerations

enum class  database::integrated::adapters::thread_backend_type { database::integrated::adapters::auto_select , database::integrated::adapters::fallback , database::integrated::adapters::null }
 Thread backend type selection. More...
 

Detailed Description

Thread pool adapter with runtime backend selection.

This adapter provides unified async execution interface for database operations using the backend pattern for runtime polymorphism.

Available backends:

  • fallback_thread_backend: Uses std::thread pool (default)
  • null_thread_backend: Synchronous execution (no threading)

Features:

  • Task execution with futures
  • Work completion tracking
  • Thread pool statistics
  • Runtime backend selection (no conditional compilation)

Definition in file thread_adapter.h.