From 1ef40895952f94ccd21fca48033b5a14d7e4ff30 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Sat, 2 Jul 2011 19:35:33 -0700 Subject: usrp1: tweaks + implemented other features to mimic async and inline messages Moved the underflow/overflow polling into a thread and out of the fast-path. Added an inline and async message queue into soft time control. Error and status messages are actually generated now and enqueued. Passes the async message test... --- host/lib/usrp/e100/io_impl.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'host/lib/usrp/e100') diff --git a/host/lib/usrp/e100/io_impl.cpp b/host/lib/usrp/e100/io_impl.cpp index 14b348f96..6e1bc3245 100644 --- a/host/lib/usrp/e100/io_impl.cpp +++ b/host/lib/usrp/e100/io_impl.cpp @@ -51,6 +51,11 @@ struct e100_impl::io_impl{ false_alarm(0), async_msg_fifo(100/*messages deep*/) { /* NOP */ } + ~io_impl(void){ + recv_pirate_crew.interrupt_all(); + recv_pirate_crew.join_all(); + } + double tick_rate; //set by update tick rate method e100_ctrl::sptr iface; //so handle irq can peek and poke void handle_irq(void); -- cgit v1.2.3