Vince's CSV Parser
Loading...
Searching...
No Matches
csv::internals::SynchronousCSVReadScheduler Class Reference

Synchronous read scheduler used by no-thread builds and runtime opt-out. More...

#include <scheduler.hpp>

Public Member Functions

 SynchronousCSVReadScheduler (bool enabled) noexcept
 
void set_threading_enabled (bool enabled) noexcept
 
void run (std::function< void()> task)
 
void run (std::function< void()> task, const std::function< void()> &before_async_run)
 
void join () noexcept
 
bool wait_if_active (const std::function< bool()> &is_waitable, const std::function< void()> &wait)
 
void clear_exception () noexcept
 
std::exception_ptr take_exception () noexcept
 
void adopt_exception (std::exception_ptr eptr) noexcept
 
void rethrow_exception_if_any ()
 

Detailed Description

Synchronous read scheduler used by no-thread builds and runtime opt-out.

It mirrors the threaded scheduler's tiny surface so CSVReader can keep worker-launch and exception-transfer details out of its public facade logic.

Definition at line 30 of file scheduler.hpp.

Constructor & Destructor Documentation

◆ SynchronousCSVReadScheduler()

csv::internals::SynchronousCSVReadScheduler::SynchronousCSVReadScheduler ( bool  enabled)
inlineexplicitnoexcept

Definition at line 34 of file scheduler.hpp.

Member Function Documentation

◆ adopt_exception()

void csv::internals::SynchronousCSVReadScheduler::adopt_exception ( std::exception_ptr  eptr)
inlinenoexcept

Definition at line 71 of file scheduler.hpp.

◆ clear_exception()

void csv::internals::SynchronousCSVReadScheduler::clear_exception ( )
inlinenoexcept

Definition at line 65 of file scheduler.hpp.

◆ join()

void csv::internals::SynchronousCSVReadScheduler::join ( )
inlinenoexcept

Definition at line 54 of file scheduler.hpp.

◆ rethrow_exception_if_any()

void csv::internals::SynchronousCSVReadScheduler::rethrow_exception_if_any ( )
inline

Definition at line 75 of file scheduler.hpp.

◆ run() [1/2]

void csv::internals::SynchronousCSVReadScheduler::run ( std::function< void()>  task)
inline

Definition at line 42 of file scheduler.hpp.

◆ run() [2/2]

void csv::internals::SynchronousCSVReadScheduler::run ( std::function< void()>  task,
const std::function< void()> &  before_async_run 
)
inline

Definition at line 46 of file scheduler.hpp.

◆ set_threading_enabled()

void csv::internals::SynchronousCSVReadScheduler::set_threading_enabled ( bool  enabled)
inlinenoexcept

Definition at line 38 of file scheduler.hpp.

◆ take_exception()

std::exception_ptr csv::internals::SynchronousCSVReadScheduler::take_exception ( )
inlinenoexcept

Definition at line 67 of file scheduler.hpp.

◆ wait_if_active()

bool csv::internals::SynchronousCSVReadScheduler::wait_if_active ( const std::function< bool()> &  is_waitable,
const std::function< void()> &  wait 
)
inline

Definition at line 56 of file scheduler.hpp.


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