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.
ros::CallbackQueue::CallbackQueue |
( |
bool |
enabled = true | ) |
|
ros::CallbackQueue::~CallbackQueue |
( |
| ) |
|
|
virtual |
void ros::CallbackQueue::addCallback |
( |
const CallbackInterfacePtr & |
callback, |
|
|
uint64_t |
owner_id = 0 |
|
) |
| |
|
virtual |
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.
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 291 of file callback_queue.cpp.
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.
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 213 of file callback_queue.cpp.
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.
void ros::CallbackQueue::disable |
( |
| ) |
|
bool ros::CallbackQueue::empty |
( |
| ) |
|
|
inline |
void ros::CallbackQueue::enable |
( |
| ) |
|
bool ros::CallbackQueue::isEmpty |
( |
| ) |
|
bool ros::CallbackQueue::isEnabled |
( |
| ) |
|
void ros::CallbackQueue::removeByID |
( |
uint64_t |
owner_id | ) |
|
|
virtual |
void ros::CallbackQueue::setupTLS |
( |
| ) |
|
|
protected |
size_t ros::CallbackQueue::calling_ |
|
protected |
bool ros::CallbackQueue::enabled_ |
|
protected |
boost::mutex ros::CallbackQueue::id_info_mutex_ |
|
protected |
boost::mutex ros::CallbackQueue::mutex_ |
|
protected |
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 Nov 2 2020 03:52:27