POSIX: Critical fix for vdev_posix

Last fix for vdev_posix.cpp introduced a sleep from within
a HRT work item callback which blocks the HRT queue.

The code in uORBDevices_posix.cpp that handles message
throttling was commented out for posix. The code was re-enabled
and now seems to work.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois
2015-06-30 12:08:42 -07:00
parent 1b01c54dd1
commit 14bf8bb277
2 changed files with 3 additions and 24 deletions
-5
View File
@@ -421,10 +421,6 @@ uORB::DeviceNode::appears_updated(SubscriberData *sd)
break;
}
// FIXME - the calls to hrt_called and hrt_call_after seem not to work in the
// POSIX build
#ifndef __PX4_POSIX
/*
* If the interval timer is still running, the topic should not
* appear updated, even though at this point we know that it has.
@@ -445,7 +441,6 @@ uORB::DeviceNode::appears_updated(SubscriberData *sd)
sd->update_interval,
&uORB::DeviceNode::update_deferred_trampoline,
(void *)this);
#endif
/*
* Remember that we have told the subscriber that there is data.