ThreadWeaver::QueueStream Class

class ThreadWeaver::QueueStream

QueueStream implements a stream based API to access ThreadWeaver queues. More...

Header: #include <ThreadWeaver/QueueStream>
CMake: find_package(KF6 REQUIRED COMPONENTS ThreadWeaver)
target_link_libraries(mytarget PRIVATE KF6::ThreadWeaver)

Public Functions

QueueStream(ThreadWeaver::Queue *queue)
~QueueStream()
void add(const ThreadWeaver::JobPointer &job)
void flush()
ThreadWeaver::QueueStream &operator<<(ThreadWeaver::Job &job)
ThreadWeaver::QueueStream &operator<<(ThreadWeaver::JobInterface *job)
ThreadWeaver::QueueStream &operator<<(const ThreadWeaver::JobPointer &job)

Detailed Description

Member Function Documentation

[explicit] QueueStream::QueueStream(ThreadWeaver::Queue *queue)

[noexcept] QueueStream::~QueueStream()

void QueueStream::add(const ThreadWeaver::JobPointer &job)

void QueueStream::flush()

ThreadWeaver::QueueStream &QueueStream::operator<<(ThreadWeaver::Job &job)

ThreadWeaver::QueueStream &QueueStream::operator<<(ThreadWeaver::JobInterface *job)

ThreadWeaver::QueueStream &QueueStream::operator<<(const ThreadWeaver::JobPointer &job)