mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-14 00:01:36 +08:00
uORB::Publication skip unadvertise on destruction if there are still subscribers
This commit is contained in:
@@ -455,6 +455,11 @@ void uORB::Manager::orb_remove_internal_subscriber(void *node_handle)
|
||||
|
||||
uint8_t uORB::Manager::orb_get_queue_size(const void *node_handle) { return static_cast<const DeviceNode *>(node_handle)->get_queue_size(); }
|
||||
|
||||
int8_t uORB::Manager::orb_get_subscriber_count(const void *node_handle)
|
||||
{
|
||||
return static_cast<const DeviceNode *>(node_handle)->subscriber_count();
|
||||
}
|
||||
|
||||
bool uORB::Manager::orb_data_copy(void *node_handle, void *dst, unsigned &generation, bool only_if_updated)
|
||||
{
|
||||
if (!is_advertised(node_handle)) {
|
||||
|
||||
Reference in New Issue
Block a user