stlab 2.3.0
Modern, modular C++ algorithms, data structures, and concurrency primitives
Loading...
Searching...
No Matches
serial_queue

Detailed Description

Serial executor and scheduling modes built on futures.

See serial_queue.hpp for serial_queue_t and schedule_mode.

Classes

class  stlab::serial_queue_t
 Executor wrapper that runs enqueued tasks serially on top of e. More...

Enumerations

enum class  stlab::schedule_mode : std::uint8_t { stlab::schedule_mode::single , stlab::schedule_mode::all }
 How the serial queue drains its task deque when kicked. More...

Enumeration Type Documentation

◆ schedule_mode

enum class stlab::schedule_mode : std::uint8_t
strong

How the serial queue drains its task deque when kicked.

Enumerator
single 

Run one task, then reschedule; fair interleaving with newly enqueued work.

all 

Swap out the entire queue and run it to completion before accepting the next batch.