Public Member Functions | Private Attributes | List of all members
moveit::tools::JobQueue Class Reference

#include <job_queue.h>

Inheritance diagram for moveit::tools::JobQueue:
Inheritance graph
[legend]

Public Member Functions

void addJob (const std::function< void()> &job)
 
void clear ()
 
void executeJobs ()
 
 JobQueue (QObject *parent=nullptr)
 
size_t numPending ()
 
void waitForAllJobs ()
 

Private Attributes

boost::condition_variable idle_condition_
 
std::deque< std::function< void()> > jobs_
 
boost::mutex jobs_mutex_
 

Detailed Description

Job Queue (of std::functions)

Definition at line 114 of file job_queue.h.

Constructor & Destructor Documentation

◆ JobQueue()

moveit::tools::JobQueue::JobQueue ( QObject *  parent = nullptr)
explicit

Definition at line 107 of file job_queue.cpp.

Member Function Documentation

◆ addJob()

void moveit::tools::JobQueue::addJob ( const std::function< void()> &  job)

Definition at line 109 of file job_queue.cpp.

◆ clear()

void moveit::tools::JobQueue::clear ( )

Definition at line 114 of file job_queue.cpp.

◆ executeJobs()

void moveit::tools::JobQueue::executeJobs ( )

Definition at line 129 of file job_queue.cpp.

◆ numPending()

size_t moveit::tools::JobQueue::numPending ( )

Definition at line 118 of file job_queue.cpp.

◆ waitForAllJobs()

void moveit::tools::JobQueue::waitForAllJobs ( )

Definition at line 123 of file job_queue.cpp.

Member Data Documentation

◆ idle_condition_

boost::condition_variable moveit::tools::JobQueue::idle_condition_
private

Definition at line 151 of file job_queue.h.

◆ jobs_

std::deque<std::function<void()> > moveit::tools::JobQueue::jobs_
private

Definition at line 150 of file job_queue.h.

◆ jobs_mutex_

boost::mutex moveit::tools::JobQueue::jobs_mutex_
private

Definition at line 149 of file job_queue.h.


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


visualization
Author(s): Robert Haschke
autogenerated on Thu Feb 27 2025 03:39:51