This is the default implementation of the ros::CallbackQueueInterface.
More...
#include <callback_queue.h>
|
virtual void | addCallback (const CallbackInterfacePtr &callback, uint64_t removal_id=0) |
| Add a callback, with an optional owner id. The owner id can be used to remove a set of callbacks from this queue. More...
|
|
void | callAvailable () |
| Invoke all callbacks currently in the queue. If a callback was not ready to be called, pushes it back onto the queue. More...
|
|
void | callAvailable (ros::WallDuration timeout) |
| Invoke all callbacks currently in the queue. If a callback was not ready to be called, pushes it back onto the queue. This version includes a timeout which lets you specify the amount of time to wait for a callback to be available before returning. More...
|
|
| CallbackQueue (bool enabled=true) |
|
CallOneResult | callOne () |
| Pop a single callback off the front of the queue and invoke it. If the callback was not ready to be called, pushes it back onto the queue. More...
|
|
CallOneResult | callOne (ros::WallDuration timeout) |
| Pop a single callback off the front of the queue and invoke it. If the callback was not ready to be called, pushes it back onto the queue. This version includes a timeout which lets you specify the amount of time to wait for a callback to be available before returning. More...
|
|
void | clear () |
| Removes all callbacks from the queue. Does not wait for calls currently in progress to finish. More...
|
|
void | disable () |
| Disable the queue, meaning any calls to addCallback() will have no effect. More...
|
|
bool | empty () |
| returns whether or not the queue is empty More...
|
|
void | enable () |
| Enable the queue (queue is enabled by default) More...
|
|
bool | isEmpty () |
| returns whether or not the queue is empty More...
|
|
bool | isEnabled () |
| Returns whether or not this queue is enabled. More...
|
|
virtual void | removeByID (uint64_t removal_id) |
| Remove all callbacks associated with an owner id. More...
|
|
virtual | ~CallbackQueue () |
|
virtual | ~CallbackQueueInterface () |
|
This is the default implementation of the ros::CallbackQueueInterface.
Definition at line 57 of file callback_queue.h.
◆ D_CallbackInfo
◆ IDInfoPtr
◆ L_CallbackInfo
◆ M_IDInfo
◆ CallOneResult
◆ CallbackQueue()
ros::CallbackQueue::CallbackQueue |
( |
bool |
enabled = true | ) |
|
◆ ~CallbackQueue()
ros::CallbackQueue::~CallbackQueue |
( |
| ) |
|
|
virtual |
◆ addCallback()
void ros::CallbackQueue::addCallback |
( |
const CallbackInterfacePtr & |
callback, |
|
|
uint64_t |
owner_id = 0 |
|
) |
| |
|
virtual |
◆ callAvailable() [1/2]
void ros::CallbackQueue::callAvailable |
( |
| ) |
|
|
inline |
Invoke all callbacks currently in the queue. If a callback was not ready to be called, pushes it back onto the queue.
Definition at line 96 of file callback_queue.h.
◆ callAvailable() [2/2]
Invoke all callbacks currently in the queue. If a callback was not ready to be called, pushes it back onto the queue. This version includes a timeout which lets you specify the amount of time to wait for a callback to be available before returning.
- Parameters
-
timeout | The amount of time to wait for at least one callback to be available. If there is already at least one callback available, this parameter does nothing. |
Definition at line 318 of file callback_queue.cpp.
◆ callOne() [1/2]
Pop a single callback off the front of the queue and invoke it. If the callback was not ready to be called, pushes it back onto the queue.
Definition at line 78 of file callback_queue.h.
◆ callOne() [2/2]
Pop a single callback off the front of the queue and invoke it. If the callback was not ready to be called, pushes it back onto the queue. This version includes a timeout which lets you specify the amount of time to wait for a callback to be available before returning.
- Parameters
-
timeout | The amount of time to wait for a callback to be available. If there is already a callback available, this parameter does nothing. |
Definition at line 233 of file callback_queue.cpp.
◆ callOneCB()
◆ clear()
void ros::CallbackQueue::clear |
( |
| ) |
|
Removes all callbacks from the queue. Does not wait for calls currently in progress to finish.
Definition at line 69 of file callback_queue.cpp.
◆ disable()
void ros::CallbackQueue::disable |
( |
| ) |
|
◆ empty()
bool ros::CallbackQueue::empty |
( |
| ) |
|
|
inline |
◆ enable()
void ros::CallbackQueue::enable |
( |
| ) |
|
◆ getIDInfo()
◆ isEmpty()
bool ros::CallbackQueue::isEmpty |
( |
| ) |
|
◆ isEnabled()
bool ros::CallbackQueue::isEnabled |
( |
| ) |
|
◆ removeByID()
void ros::CallbackQueue::removeByID |
( |
uint64_t |
owner_id | ) |
|
|
virtual |
◆ setupTLS()
void ros::CallbackQueue::setupTLS |
( |
| ) |
|
|
protected |
◆ callbacks_
◆ calling_
size_t ros::CallbackQueue::calling_ |
|
protected |
◆ condition_
◆ enabled_
bool ros::CallbackQueue::enabled_ |
|
protected |
◆ id_info_
◆ id_info_mutex_
boost::mutex ros::CallbackQueue::id_info_mutex_ |
|
protected |
◆ mutex_
boost::mutex ros::CallbackQueue::mutex_ |
|
protected |
◆ tls_
boost::thread_specific_ptr<TLS> ros::CallbackQueue::tls_ |
|
protected |
The documentation for this class was generated from the following files:
roscpp
Author(s): Morgan Quigley, Josh Faust, Brian Gerkey, Troy Straszheim, Dirk Thomas
autogenerated on Mon Feb 28 2022 23:33:27