Skip to content

Class parallel_query::thread_safe_queue

template <typename T>

ClassList > parallel_query > thread_safe_queue

  • #include <px_thread_safe_queue.hpp>

Public Functions

Type Name
std::size_t capacity () const
bool is_empty () const
bool is_full () const
bool pop (T & value, const interrupt & interrupt_check=interrupt())
void push (const T & value, const interrupt & interrupt_check=interrupt())
void push_last ()
void reset_queue ()
std::size_t size () const
thread_safe_queue (std::size_t capacity=1024)
bool try_pop (T & value)
bool try_push (const T & value)
~thread_safe_queue ()

Public Functions Documentation

function capacity

std::size_t parallel_query::thread_safe_queue::capacity () const

function is_empty

bool parallel_query::thread_safe_queue::is_empty () const

function is_full

bool parallel_query::thread_safe_queue::is_full () const

function pop

bool parallel_query::thread_safe_queue::pop (
    T & value,
    const  interrupt & interrupt_check=interrupt ()
) 

function push

void parallel_query::thread_safe_queue::push (
    const T & value,
    const  interrupt & interrupt_check=interrupt ()
) 

function push_last

void parallel_query::thread_safe_queue::push_last () 

function reset_queue

void parallel_query::thread_safe_queue::reset_queue () 

function size

std::size_t parallel_query::thread_safe_queue::size () const

function thread_safe_queue

explicit parallel_query::thread_safe_queue::thread_safe_queue (
    std::size_t capacity=1024
) 

function try_pop

bool parallel_query::thread_safe_queue::try_pop (
    T & value
) 

function try_push

bool parallel_query::thread_safe_queue::try_push (
    const T & value
) 

function ~thread_safe_queue

parallel_query::thread_safe_queue::~thread_safe_queue () 


The documentation for this class was generated from the following file cubrid/src/query/parallel/px_thread_safe_queue.hpp