irods  4.2.8
About: iRODS (the integrated Rule Oriented Data System) is a distributed data-management system for creating data grids, digital libraries, persistent archives, and real-time data systems.
  Fossies Dox: irods-4.2.8.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

irods::delay_queue Class Reference

#include <irods_delay_queue.hpp>

Collaboration diagram for irods::delay_queue:
[legend]

Public Member Functions

 delay_queue ()=default
 
 delay_queue (delay_queue &)=delete
 
delay_queueoperator= (delay_queue &)=delete
 
bool contains_rule_id (const std::string &_rule_id)
 
void enqueue_rule (const std::string &rule_id)
 
void dequeue_rule (const std::string &rule_id)
 

Private Member Functions

std::unique_lock< std::mutex > get_queue_lock ()
 

Private Attributes

std::mutex rules_mutex
 
std::vector< std::string > queued_rules
 

Detailed Description

Definition at line 7 of file irods_delay_queue.hpp.

Constructor & Destructor Documentation

◆ delay_queue() [1/2]

irods::delay_queue::delay_queue ( )
default

◆ delay_queue() [2/2]

irods::delay_queue::delay_queue ( delay_queue )
delete

Member Function Documentation

◆ contains_rule_id()

bool irods::delay_queue::contains_rule_id ( const std::string &  _rule_id)
inline

Definition at line 13 of file irods_delay_queue.hpp.

References get_queue_lock(), and queued_rules.

Here is the call graph for this function:

◆ dequeue_rule()

void irods::delay_queue::dequeue_rule ( const std::string &  rule_id)
inline

Definition at line 24 of file irods_delay_queue.hpp.

References get_queue_lock(), and queued_rules.

Here is the call graph for this function:

◆ enqueue_rule()

void irods::delay_queue::enqueue_rule ( const std::string &  rule_id)
inline

Definition at line 19 of file irods_delay_queue.hpp.

References get_queue_lock(), and queued_rules.

Here is the call graph for this function:

◆ get_queue_lock()

std::unique_lock<std::mutex> irods::delay_queue::get_queue_lock ( )
inlineprivate

Definition at line 39 of file irods_delay_queue.hpp.

References rules_mutex.

Referenced by contains_rule_id(), dequeue_rule(), and enqueue_rule().

◆ operator=()

delay_queue& irods::delay_queue::operator= ( delay_queue )
delete

Member Data Documentation

◆ queued_rules

std::vector<std::string> irods::delay_queue::queued_rules
private

Definition at line 37 of file irods_delay_queue.hpp.

Referenced by contains_rule_id(), dequeue_rule(), and enqueue_rule().

◆ rules_mutex

std::mutex irods::delay_queue::rules_mutex
private

Definition at line 36 of file irods_delay_queue.hpp.

Referenced by get_queue_lock().


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